public void render() { camera.update(); spriteBatch.setProjectionMatrix(camera.combined); //... }