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