Esempio n. 1
0
 /// <summary>
 /// Acting for keyboard state.
 /// </summary>
 /// <param name="i_KeyboardState">Keyboard state.</param>
 protected override void actForKeyboardState(KeyboardState i_KeyboardState)
 {
     if (i_KeyboardState.IsKeyDown(Keys.Escape))
     {
         ScreensManager.Quit();
     }
     else if (i_KeyboardState.IsKeyDown(Keys.Home))
     {
         bool       v_EraseThisScreen = true;
         GameScreen startTimer        = StageScreen.GetStages(ScreensManager);
         ScreensManager.MoveTo(startTimer, v_EraseThisScreen);
     }
     else if (i_KeyboardState.IsKeyDown(Keys.N))
     {
         ScreensManager.MoveBackToRootScreen();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Going to main menu screen.
 /// </summary>
 /// <param name="i_GameTime">Game Time.</param>
 private void goToMainMenu(GameTime i_GameTime)
 {
     ScreensManager.RootScreen = new MainMenuScreen(ScreensManager);
     ScreensManager.MoveBackToRootScreen();
 }