Ejemplo n.º 1
0
        /// <summary>
        /// Advances to the next screen based on the current difficulty and whether or not the user has won.
        /// </summary>
        /// <param name="isWon">Whether or not the user has won the current level.</param>
        private void MoveToNextScreen(bool isWon)
        {
            ScreenManager.AddScreen(new BackgroundScreen("pauseBackground"), null);

            if (isWon)
            {
                switch (gameDifficultyLevel)
                {
                case DifficultyMode.Easy:
                case DifficultyMode.Medium:
                    ScreenManager.AddScreen(
                        new LevelOverScreen("You Finished Level: " + gameDifficultyLevel.ToString(),
                                            ++gameDifficultyLevel), null);
                    break;

                case DifficultyMode.Hard:
                    ScreenManager.AddScreen(new LevelOverScreen("You Win", null), null);
                    break;
                }
            }
            else
            {
                ScreenManager.AddScreen(new LevelOverScreen("You Lose", null), null);
            }

            AudioManager.StopMusic();
            AudioManager.StopSound("BeeBuzzing_Loop");
        }