Ejemplo n.º 1
0
  public void createSplashScene(OnCreateSceneCallback pOnCreateSceneCallback) {
    ResourcesManager.getInstance().loadSplashScreen();

    splashScene = new SplashScene();
    currentScene = splashScene;
    pOnCreateSceneCallback.onCreateSceneFinished(splashScene);
  }
 // ====================================================
 // CREATE SCENE
 // ====================================================
 @Override
 public void onCreateScene(OnCreateSceneCallback pOnCreateSceneCallback) {
   mScene = new Scene();
   mScene.setBackground(new Background(0.9f, 0.9f, 0.9f));
   pOnCreateSceneCallback.onCreateSceneFinished(mScene);
 }
Ejemplo n.º 3
0
 public void returnSettingsScene(OnCreateSceneCallback pOnCreateSceneCallback) {
   settingsScene = new SettingsScene();
   SceneManager.getInstance().setScene(settingsScene);
   pOnCreateSceneCallback.onCreateSceneFinished(settingsScene);
 }
Ejemplo n.º 4
0
 public void createIntroScene(OnCreateSceneCallback pOnCreateSceneCallback) {
   introScene = new IntroScene();
   SceneManager.getInstance().setScene(introScene);
   pOnCreateSceneCallback.onCreateSceneFinished(introScene);
 }