Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.tempGameScore = game.dropsGatchered;
- game.dropsGatchered = 0;
- iter.remove();
- game.preferences.putInteger("Save", game.tempGameScore);
- game.preferences.flush();
- @Override
- public void render(float delta) {
- Gdx.gl.glClearColor(0f, 0f, 0f, 1);
- Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
- game.batch.begin();
- game.batch.draw(bacgTexture, 0, 0, Drop.WIDTH, Drop.HEIGHT);
- if (game.tempGameScore != 0) {
- textFont.draw(game.batch, " " + game.preferences.getInteger("Save", game.tempGameScore),
- 800/2, 480/2);
- } else {
- game.tempGameScore = 0;
- textFont.draw(game.batch, " " + game.tempGameScore,
- 800/2, 480/2);
- }
- game.batch.end();
- }
Add Comment
Please, Sign In to add comment