Beispiel #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);
  }
Beispiel #2
0
 @Override
 public void pause() {
   WorldIO.saveWorld(world);
   Timer.stopGameTime();
 }
Beispiel #3
0
 @Override
 public void onBackPressed() {
   WorldIO.saveWorld(world);
   Timer.stopGameTime();
 }