Exemplo n.º 1
0
 private void ConfirmExitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
Exemplo n.º 2
0
        private void HelpMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            string message = "Avoid the obstacles by pressing SPACE to jump over them.\nCollect coins for bonus points and hearts for extra lives.";

            ScreenManager.AddScreen(new MessageBoxScreen(message, false), e.PlayerIndex);
        }
Exemplo n.º 3
0
 private void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex);
 }
Exemplo n.º 4
0
 private void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new GameplayScreen());
 }