示例#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();
 }