Пример #1
0
 public void DestroyInstance(BossUFO boss)
 {
     Main.gameScore      += 1;
     Main.gameDifficulty += 1;
     Main.playerHealth   += 1;
     Main.activeEntities.Remove(boss);
 }
Пример #2
0
        public static void NewBossUFO(Vector2 position)
        {
            BossUFO currentInstance = new BossUFO();

            /*for (int p = 0; p < Main.MaxProjectiles; p++)
             * {
             *  if (Main.activeProjectiles[p] == null)
             *  {
             *      Main.activeProjectiles[p] = currentInstance;
             *  }
             * }*/
            currentInstance.position = position;
            currentInstance.hitbox   = new Rectangle((int)currentInstance.position.X, (int)currentInstance.position.Y, bossUFOAnimationArray[0].Width, bossUFOAnimationArray[0].Height);
            Main.activeEntities.Add(currentInstance);
        }