Animated the score display.
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user