Exemple #1
0
        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];
            }
        }
Exemple #2
0
 public Weapon(WeaponType type)
 {
     Type = type;
     CurrentAnimation = Animations[(int) Type];
 }