Esempio n. 1
0
 public void render() {
   dt = Gdx.graphics.getDeltaTime();
   handleInput();
   checkCollisions(player);
   updatePosition(player);
   camera.update();
   renderWorld();
 }
Esempio n. 2
0
 private void initCamera() {
   camera = new SheetCamera(20f, 15f);
   camera.setTarget(player);
 }