Exemplo n.º 1
0
 @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();
 }
Exemplo n.º 2
0
 @Override
 public void hide() {
   worldController.dispose();
   worldRenderer.dispose();
   Gdx.input.setCatchBackKey(false);
 }
Exemplo n.º 3
0
 @Override
 public void resize(int width, int height) {
   worldRenderer.resize(width, height);
 }