Guest User

Untitled

a guest
Jul 30th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. game.tempGameScore = game.dropsGatchered;
  2. game.dropsGatchered = 0;
  3. iter.remove();
  4. game.preferences.putInteger("Save", game.tempGameScore);
  5. game.preferences.flush();
  6.  
  7. @Override
  8. public void render(float delta) {
  9. Gdx.gl.glClearColor(0f, 0f, 0f, 1);
  10. Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  11.  
  12. game.batch.begin();
  13. game.batch.draw(bacgTexture, 0, 0, Drop.WIDTH, Drop.HEIGHT);
  14. if (game.tempGameScore != 0) {
  15. textFont.draw(game.batch, " " + game.preferences.getInteger("Save", game.tempGameScore),
  16. 800/2, 480/2);
  17. } else {
  18. game.tempGameScore = 0;
  19. textFont.draw(game.batch, " " + game.tempGameScore,
  20. 800/2, 480/2);
  21. }
  22. game.batch.end();
  23. }
Add Comment
Please, Sign In to add comment