Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- long t0 = gameClock.getCurrentTime();
- long elapsedTime = gameClock.getCurrentTime() - t0;
- while(elapsedTime >= gameClock.getGamePlayRate())
- {
- updatePlayer();
- updateCamera();
- t0 += gameClock.getGamePlayRate();
- elapsedTime = gameClock.getCurrentTime() - t0;
- }
Advertisement
Add Comment
Please, Sign In to add comment