@Override public void render(float deltaTime) { // Do not update game world when paused. if (!paused) { // Update game world by the time that has passed // since last rendered frame. worldController.update(deltaTime); } // Sets the clear screen color to: Cornflower Blue Gdx.gl.glClearColor(0xff / 255.0f, 0xff / 255.0f, 0xff / 255.0f, 0xff / 255.0f); // Clears the screen Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); // Render game world to screen worldRenderer.render(); }
@Override public void hide() { worldController.dispose(); worldRenderer.dispose(); Gdx.input.setCatchBackKey(false); }
@Override public void resize(int width, int height) { worldRenderer.resize(width, height); }