Пример #1
0
        public static Enemy CreateAsteroid(Vector2 position, int Level)
        {
            var enemy = new Enemy(GameRoot.Asteroid, position, Level);

            enemy.AddEnemyType(enemy.Asteroid());
            enemy.PointValue = 3;
            if (Level == 1)
            {
                enemy.Health = 3;
            }
            else
            {
                enemy.Health = 4;
            }
            return(enemy);
        }