Пример #1
0
 @Override
 public void create() {
   // TODO Auto-generated method stub
   super.create();
   SplashScene scene = new SplashScene();
   SceneManager.getInstance().startWithScene(scene);
 }
Пример #2
0
  @Override
  protected void onUpdate(float dt) {
    // TODO Auto-generated method stub

    if (state == 0) {
      if (loader.updateForDefLoading(dt)) {
        state = 1;
      }
    } else if (state == 1) {
      try {
        if (loader.updateForSpriteLoading(dt)) {
          state = 2;
        }
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }

    } else {
      SceneManager.getInstance().changeScene(new TiledStageScene());
    }

    super.onUpdate(dt);
  }