Ejemplo n.º 1
0
 public void StartGame(object sender, ScreenEventArgs args)
 {
     ChooseCharacterScreen chooseCharacterScreen = new ChooseCharacterScreen();
      IsExiting = true;
       ScreenManager.AddScreen(chooseCharacterScreen);
       ScreenManager.Screens[ScreenManager.Screens.Count() - 1].LoadContent();
      // LoadingScreen loadingScreen = new LoadingScreen(new GameScreen[] { new ChooseDifficulty() }, true, ScreenManager);
 }
Ejemplo n.º 2
0
        public void OnQuit(object sender, ScreenEventArgs e)
        {
            //     IsExiting = true;

            // do not remove the current screen

            ExitScreen exitScreen = new ExitScreen();
            exitScreen.ScreenManager = ScreenManager;
            exitScreen.LoadContent();
            ScreenManager.AddScreen(exitScreen);
            ScreenManager.Screens[ScreenManager.Screens.Count() - 1].LoadContent();
             //           screenstate = ScreenState.Active;
        }
Ejemplo n.º 3
0
 public void OpenSettingsMenuScreen(object sender, ScreenEventArgs args)
 {
     SettingsMenuScreen settings = new SettingsMenuScreen(ScreenManager);
     settings.ScreenManager = ScreenManager;
     screenManager.AddScreen(settings);
 }