Ejemplo n.º 1
0
        public static Enemy CreateBoss(Vector2 position)
        {
            var enemy = new Enemy(GameRoot.Boss, position);

            enemy.AddBehaviour(enemy.Idle());
            enemy.Health   = 200;
            enemy.Velocity = new Vector2(0, 0);
            enemy.isBoss   = true;

            PlayerShip.Instance.bossSpawned = true;
            return(enemy);
        }