예제 #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();
 }
예제 #2
0
 @Override
 public void hide() {
   worldController.dispose();
   worldRenderer.dispose();
   Gdx.input.setCatchBackKey(false);
 }