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