Example #1
0
        public void Render()
        {
            switch (CurrentState)
            {
            case GameState.MainMenu:
                MainMenu.Render();
                break;

            case GameState.Credits:
                Credits.Render();
                break;

            case GameState.WinScreen:
                WinScreen.Render();
                break;

            case GameState.LoseScreen:
                LoseScreen.Render();
                break;

            case GameState.Level:
                LevelController.Render();
                break;

            default:
                break;
            }
        }
Example #2
0
 public void Initialization()
 {
     LevelController = new LevelController();
     LoseScreen      = new LoseScreen();
     WinScreen       = new WinScreen();
     MainMenu        = new MainMenu();
     Credits         = new Credits();
     ChangeGameState(GameState.MainMenu);
 }