Esempio n. 1
0
 private void disposeGameScene() {
   gameScene.setIgnoreUpdate(true);
   ResourceManager.getInstance().unloadGameTextures();
   ResourceManager.getInstance().unloadGamePause();
   gameScene.disposeScene();
   gameScene = null;
 }
Esempio n. 2
0
 private void createGameScene() {
   ResourceManager.getInstance().loadGameTextures();
   ResourceManager.getInstance().loadGamePause();
   gameScene = new GameScene();
   ((GameScene) gameScene).setGameScene();
   SceneManager.getInstance().setScene(gameScene);
 }
Esempio n. 3
0
 public void createMenuScene() {
   ResourceManager.getInstance().loadMenu();
   ResourceManager.getInstance().loadFonts();
   menuScene = new MainMenuScene();
   SceneManager.getInstance().setScene(menuScene);
   if (!GameActivity.getIniciado()) disposeIntroScene();
 }
Esempio n. 4
0
 public void createSelectorScene() {
   ResourceManager.getInstance().loadSelector();
   selectorScene = new SelectorScene();
   ((SelectorScene) selectorScene).initScene();
   SceneManager.getInstance().setScene(selectorScene);
   disposeMenuScene();
 }
Esempio n. 5
0
 public void disposeSelectorScene() {
   ResourceManager.getInstance().unloadSelector();
   selectorScene.disposeScene();
   selectorScene = null;
 }
Esempio n. 6
0
 public void disposeSettingsScene() {
   ResourceManager.getInstance().unloadSettings();
   settingsScene.disposeScene();
   settingsScene = null;
 }
Esempio n. 7
0
 public void createSettingsScene() {
   ResourceManager.getInstance().loadSettings();
   settingsScene = new SettingsScene();
   SceneManager.getInstance().setScene(settingsScene);
   disposeMenuScene();
 }
Esempio n. 8
0
 private void disposeLoadScene() {
   ResourceManager.getInstance().unloadFonts();
   loadScene.disposeScene();
   loadScene = null;
 }
Esempio n. 9
0
 public void createLoadScene() {
   ResourceManager.getInstance().loadFonts();
   loadScene = new LoadScene();
   SceneManager.getInstance().setScene(loadScene);
 }
Esempio n. 10
0
 private void disposeMenuScene() {
   menuScene.setIgnoreUpdate(true);
   ResourceManager.getInstance().unloadMenu();
   menuScene.disposeScene();
   menuScene = null;
 }
Esempio n. 11
0
 private void disposeIntroScene() {
   ResourceManager.getInstance().unloadIntro();
   introScene.disposeScene();
   introScene = null;
 }