fix oob sequence

This commit is contained in:
RandomityGuy 2022-12-19 19:30:54 +05:30
parent 774836dbd0
commit 3437c09fdc

View file

@ -438,6 +438,8 @@ class MarbleWorld extends Scheduler {
}
public function updateGameState() {
if (this.outOfBounds)
return; // We will update state manually
if (this.timeState.currentAttemptTime < 0.5) {
this.playGui.setCenterText('none');
}
@ -454,9 +456,6 @@ class MarbleWorld extends Scheduler {
if (this.timeState.currentAttemptTime >= 5.5) {
this.playGui.setCenterText('none');
}
if (this.outOfBounds) {
this.playGui.setCenterText('outofbounds');
}
}
function getStartPositionAndOrientation() {
@ -1324,7 +1323,10 @@ class MarbleWorld extends Scheduler {
playGui.setCenterText('none');
return null;
});
this.schedule(this.timeState.currentAttemptTime + 2.5, () -> this.restart());
this.schedule(this.timeState.currentAttemptTime + 2.5, () -> {
this.restart();
return null;
});
}
public function setCursorLock(enabled:Bool) {