Пример #1
0
        public SceneHandler()
        {
            gameState = GameState.SplashScreen;

            gameplayScene = new GamePlay();
            mainmenuScene = new MainMenu();
            menuoptionScene = new MenuOptions();
            pauseScene = new PauseScene();
            victoryScene = new VictoryScene();
            defeatScene = new DefeatScene();
            coopSettingsScene = new CoopSettingsScene();
            coopConnexionScene = new CoopConnexionScene();
            splashScreenScene = new SplashScreenScene();
            creditsScene = new Credits();
            championSelectionScene = new ChampionSelection();
        }
Пример #2
0
 // Si on change de map
 public static void ResetGameplay(string map)
 {
     // Oldmap
     PackMap.Sauvegarder();
     level = map;
     // Nouvelle map
     gameplayScene = new GamePlay();
     gameplayScene.Initialize();
     gameplayScene.LoadContent();
     defeatScene.firstTime = true;
     victoryScene.firstTime = true;
 }
Пример #3
0
 public static void ResetGameplay()
 {
     // Reinitialise les levels ET le joueur (il faudra ajouter un truc qui charge les infos du joueur a partir d'un fichier texte
     level = "level1";
     PackMap.LoadPlayers();
     PackMap.InitLevels();
     gameplayScene = new GamePlay();
     gameplayScene.Initialize();
     gameplayScene.LoadContent();
     defeatScene.firstTime = true;
     victoryScene.firstTime = true;
 }