Added configurable game key bindings.
- Game keys (default Z/X) can be changed to any letter or digit in the options screen.
Other changes:
- Mouse/keyboard input in the "Game Paused Menu" state is now the same as in the game state (i.e. all game keys available).
- Moved 'isInputKeyPressed()' into "Utils" class ("Game" state didn't even call it).
- Trimmed 'failsound.wav'.
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -47,11 +47,6 @@ public class Spinner {
|
||||
*/
|
||||
private OsuHitObject hitObject;
|
||||
|
||||
/**
|
||||
* The associated Game object.
|
||||
*/
|
||||
private Game game;
|
||||
|
||||
/**
|
||||
* The associated GameScore object.
|
||||
*/
|
||||
@@ -95,7 +90,6 @@ public class Spinner {
|
||||
*/
|
||||
public Spinner(OsuHitObject hitObject, Game game, GameScore score) {
|
||||
this.hitObject = hitObject;
|
||||
this.game = game;
|
||||
this.score = score;
|
||||
|
||||
// calculate rotations needed
|
||||
@@ -202,7 +196,7 @@ public class Spinner {
|
||||
}
|
||||
|
||||
// not spinning: nothing to do
|
||||
if (!game.isInputKeyPressed()) {
|
||||
if (!Utils.isGameKeyPressed()) {
|
||||
lastAngle = -1f;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user