Exemplo n.º 1
0
        /// <summary>
        /// This is called by the GameOver event in the ScoreSprite
        /// and AlienSquad if the game is over.
        /// </summary>
        private void onGameOver()
        {
            player.Dispose();
            aliens.Dispose();
            playerLaser.Dispose();
            alienBomb.Dispose();
            ship.Dispose();
            shipBomb.Dispose();
            bonus.Dispose();
            bonusBomb.Dispose();

            Status = GameStatus.OVER;
        }