Пример #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);
 }
Пример #3
0
 public void returnSettingsScene(OnCreateSceneCallback pOnCreateSceneCallback) {
   settingsScene = new SettingsScene();
   SceneManager.getInstance().setScene(settingsScene);
   pOnCreateSceneCallback.onCreateSceneFinished(settingsScene);
 }
Пример #4
0
 public void createIntroScene(OnCreateSceneCallback pOnCreateSceneCallback) {
   introScene = new IntroScene();
   SceneManager.getInstance().setScene(introScene);
   pOnCreateSceneCallback.onCreateSceneFinished(introScene);
 }