Moved hit result to be drawn after lighting

This commit is contained in:
Drew Lemmy 2015-04-06 23:12:36 +01:00
parent 87e68bd494
commit 9a2772b614

View File

@ -826,11 +826,6 @@ public class GameData {
while (iter.hasNext()) { while (iter.hasNext()) {
OsuHitObjectResult hitResult = iter.next(); OsuHitObjectResult hitResult = iter.next();
if (hitResult.time + HITRESULT_FADE_TIME > trackPosition) { if (hitResult.time + HITRESULT_FADE_TIME > trackPosition) {
// hit result
hitResults[hitResult.result].setAlpha(hitResult.alpha);
hitResults[hitResult.result].drawCentered(hitResult.x, hitResult.y);
hitResults[hitResult.result].setAlpha(1f);
// spinner // spinner
if (hitResult.isSpinner && hitResult.result != HIT_MISS) { if (hitResult.isSpinner && hitResult.result != HIT_MISS) {
Image spinnerOsu = GameImage.SPINNER_OSU.getImage(); Image spinnerOsu = GameImage.SPINNER_OSU.getImage();
@ -847,6 +842,11 @@ public class GameData {
lighting.setAlpha(hitResult.alpha); lighting.setAlpha(hitResult.alpha);
lighting.drawCentered(hitResult.x, hitResult.y, hitResult.color); lighting.drawCentered(hitResult.x, hitResult.y, hitResult.color);
} }
// hit result
hitResults[hitResult.result].setAlpha(hitResult.alpha);
hitResults[hitResult.result].drawCentered(hitResult.x, hitResult.y);
hitResults[hitResult.result].setAlpha(1f);
// hit animation // hit animation
Image scaledHitCircle = GameImage.HITCIRCLE.getImage().getScaledCopy( Image scaledHitCircle = GameImage.HITCIRCLE.getImage().getScaledCopy(