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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user