add map start & end delay adjustable (#10 optimalisation)

This commit is contained in:
yugecin
2016-11-13 04:17:28 +01:00
parent e8a6b07fef
commit 4b5fab5050
3 changed files with 20 additions and 3 deletions

View File

@@ -827,7 +827,7 @@ public class Game extends BasicGameState {
boolean complete = objectIndex >= gameObjects.length;
if (GameMod.AUTO.isActive() && complete) {
if (gameObjects.length > 0) {
complete = trackPosition >= gameObjects[gameObjects.length - 1].getEndTime() + 5000;
complete = trackPosition >= gameObjects[gameObjects.length - 1].getEndTime() + Options.getMapEndDelay();
}
}
if (complete || (MusicController.trackEnded() && objectIndex > 0)) {
@@ -1438,7 +1438,7 @@ public class Game extends BasicGameState {
MusicController.pause();
if (gameObjects.length > 0) {
int leadIntime = 2000 - gameObjects[0].getTime();
int leadIntime = Options.getMapStartDelay() - gameObjects[0].getTime();
if (leadIntime > 0) {
this.leadInTime = Math.max(leadIntime, this.leadInTime);
}

View File

@@ -87,7 +87,9 @@ public class OptionsMenu extends BasicGameState {
GameOption.SHOW_COMBO_BURSTS,
GameOption.SHOW_PERFECT_HIT,
GameOption.SHOW_FOLLOW_POINTS,
GameOption.SHOW_HIT_ERROR_BAR
GameOption.SHOW_HIT_ERROR_BAR,
GameOption.MAP_START_DELAY,
GameOption.MAP_END_DELAY,
}),
INPUT ("Input", new GameOption[] {
GameOption.KEY_LEFT,