Animated the score display.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2014-07-03 02:03:56 -04:00
parent f195ffb861
commit 0b471fa1cc
2 changed files with 24 additions and 3 deletions

View File

@@ -498,6 +498,8 @@ public class Game extends BasicGameState {
return;
}
score.updateScoreDisplay(delta);
// map complete!
if (objectIndex >= osu.objects.length) {
game.enterState(Opsu.STATE_GAMERANKING, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
@@ -558,6 +560,8 @@ public class Game extends BasicGameState {
game.enterState(Opsu.STATE_GAMEPAUSEMENU);
}
score.updateComboBurst(delta);
// drain health
score.changeHealth(delta / -200f);
if (!score.isAlive()) {
@@ -566,8 +570,6 @@ public class Game extends BasicGameState {
game.enterState(Opsu.STATE_GAMEPAUSEMENU);
}
score.updateComboBurst(delta);
// update objects (loop in unlikely event of any skipped indexes)
while (objectIndex < osu.objects.length && trackPosition > osu.objects[objectIndex].time) {
OsuHitObject hitObject = osu.objects[objectIndex];