Flash warningarrows after breaks 4 times instead of 2

This commit is contained in:
yugecin 2016-09-30 20:08:50 +02:00
parent be547cfa1f
commit 8891976d48

View File

@ -473,10 +473,9 @@ public class Game extends BasicGameState {
} }
} }
} else if (breakLength >= 4000) { } else if (breakLength >= 4000) {
// show break end (flash twice for 500ms) // show break end (flash four times for 250ms)
int endTimeDiff = endTime - trackPosition; int endTimeDiff = endTime - trackPosition;
if ((endTimeDiff > 1500 && endTimeDiff < 2000) || if (endTimeDiff < 2000 && (endTimeDiff / 250 % 2) == 1) {
(endTimeDiff > 500 && endTimeDiff < 1000)) {
Image arrow = GameImage.WARNINGARROW.getImage(); Image arrow = GameImage.WARNINGARROW.getImage();
arrow.setRotation(0); arrow.setRotation(0);
arrow.draw(width * 0.15f, height * 0.15f); arrow.draw(width * 0.15f, height * 0.15f);