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

@@ -29,11 +29,12 @@ import org.newdawn.slick.util.Log;
* Game mods.
*/
public enum GameMod {
NO_FAIL (0, "selection-mod-nofail.png"),
HARD_ROCK (1, "selection-mod-hardrock.png"),
SUDDEN_DEATH (2, "selection-mod-suddendeath.png"),
SPUN_OUT (3, "selection-mod-spunout.png"),
AUTO (4, "selection-mod-autoplay.png");
EASY (0, "selection-mod-easy.png"),
NO_FAIL (1, "selection-mod-nofail.png"),
HARD_ROCK (2, "selection-mod-hardrock.png"),
SUDDEN_DEATH (3, "selection-mod-suddendeath.png"),
SPUN_OUT (4, "selection-mod-spunout.png"),
AUTO (5, "selection-mod-autoplay.png");
/**
* The ID of the mod (used for positioning).
@@ -130,12 +131,19 @@ public enum GameMod {
if (active)
toggle(false);
}
} else if (SUDDEN_DEATH.isActive() && NO_FAIL.isActive()) {
}
if (SUDDEN_DEATH.isActive() && NO_FAIL.isActive()) {
if (this == SUDDEN_DEATH)
NO_FAIL.toggle(false);
else
SUDDEN_DEATH.toggle(false);
}
if (EASY.isActive() && HARD_ROCK.isActive()) {
if (this == EASY)
HARD_ROCK.toggle(false);
else
EASY.toggle(false);
}
}
}