Added "Easy" mod.

- Halves all difficulty values and grants 3 "lives" instead of 1, with a score multiplier of 0.5x.

Other changes:
- Fixed score display in game state if score exceeds 8 digits.
- Added a "HP_DRAIN_MULTIPLIER" constant for steady HP drain/increase (to replace numeric constants).

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2014-07-16 16:56:23 -04:00
parent 7a187c4e4f
commit cb396e0d20
5 changed files with 73 additions and 16 deletions

View File

@@ -575,7 +575,7 @@ public class Slider {
if ((game.isInputKeyPressed() && distance < followCircleRadius) || isAutoMod) {
// mouse pressed and within follow circle
followCircleActive = true;
score.changeHealth(delta / 200f);
score.changeHealth(delta * GameScore.HP_DRAIN_MULTIPLIER);
// held during new repeat
if (isNewRepeat) {

View File

@@ -191,12 +191,12 @@ public class Spinner {
// spin automatically (TODO: correct rotation angles)
if (GameMod.AUTO.isActive()) {
// "auto" mod (fast)
score.changeHealth(delta / 200f); // maintain health (TODO)
score.changeHealth(delta * GameScore.HP_DRAIN_MULTIPLIER);
rotate(delta / 20f);
return false;
} else if (GameMod.SPUN_OUT.isActive()) {
// "spun out" mod (slow)
score.changeHealth(delta / 200f); // maintain health (TODO)
score.changeHealth(delta * GameScore.HP_DRAIN_MULTIPLIER);
rotate(delta / 32f);
return false;
}
@@ -215,7 +215,7 @@ public class Spinner {
if (lastAngle >= 0f) { // skip initial clicks
float angleDiff = Math.abs(lastAngle - angle);
if (angleDiff < Math.PI / 2) { // skip huge angle changes...
score.changeHealth(delta / 200f); // maintain health (TODO)
score.changeHealth(delta * GameScore.HP_DRAIN_MULTIPLIER);
rotate(angleDiff);
}
}