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