예제 #1
0
파일: Enemy.cs 프로젝트: Pyroglyph/Dual
        public Enemy(Type type)
        {
            EnemyType = type;

            //  Pick random spawnpoint from current map's spawns
            Loc = World.CurrentMap.EnemySpawnPoints
                [new Random().Next(
                    0,
                    World.CurrentMap.EnemySpawnPoints.Length - 1
                    )];

            // set animation
            if (type == Type.Blob)
            {
                CurrentAnimation = Animations[(int)Type.Blob];
            }
        }
예제 #2
0
파일: Weapon.cs 프로젝트: Pyroglyph/Dual
 public Weapon(WeaponType type)
 {
     Type = type;
     CurrentAnimation = Animations[(int) Type];
 }