예제 #1
0
  public void update() {
    camera.update();
    gameHud.update(camera);

    if (Gdx.input.isKeyJustPressed(Keys.I)) {
      System.out.println("Saving");
      WorldIO.saveWorld(world);
    }

    world.update(camera);
  }
예제 #2
0
 @Override
 public void pause() {
   WorldIO.saveWorld(world);
   Timer.stopGameTime();
 }
예제 #3
0
 @Override
 public void onBackPressed() {
   WorldIO.saveWorld(world);
   Timer.stopGameTime();
 }