leadin delay 2s
This commit is contained in:
parent
7276705533
commit
ceb6751831
|
@ -308,6 +308,9 @@ public class Game extends BasicGameState {
|
||||||
int width = container.getWidth();
|
int width = container.getWidth();
|
||||||
int height = container.getHeight();
|
int height = container.getHeight();
|
||||||
int trackPosition = MusicController.getPosition();
|
int trackPosition = MusicController.getPosition();
|
||||||
|
if (isLeadIn()) {
|
||||||
|
trackPosition -= leadInTime;
|
||||||
|
}
|
||||||
if (pauseTime > -1) // returning from pause screen
|
if (pauseTime > -1) // returning from pause screen
|
||||||
trackPosition = pauseTime;
|
trackPosition = pauseTime;
|
||||||
else if (deathTime > -1) // "Easy" mod: health bar increasing
|
else if (deathTime > -1) // "Easy" mod: health bar increasing
|
||||||
|
@ -1357,6 +1360,12 @@ public class Game extends BasicGameState {
|
||||||
MusicController.setPitch(GameMod.getSpeedMultiplier());
|
MusicController.setPitch(GameMod.getSpeedMultiplier());
|
||||||
MusicController.pause();
|
MusicController.pause();
|
||||||
|
|
||||||
|
if (gameObjects.length > 0) {
|
||||||
|
int leadIntime = 2000 - gameObjects[0].getTime();
|
||||||
|
if (leadIntime > 0) {
|
||||||
|
this.leadInTime = Math.max(leadIntime, this.leadInTime);
|
||||||
|
}
|
||||||
|
}
|
||||||
SoundController.mute(false);
|
SoundController.mute(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user