mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 21:21:41 +00:00
fix oob sequence
This commit is contained in:
parent
774836dbd0
commit
3437c09fdc
1 changed files with 6 additions and 4 deletions
|
|
@ -438,6 +438,8 @@ class MarbleWorld extends Scheduler {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updateGameState() {
|
public function updateGameState() {
|
||||||
|
if (this.outOfBounds)
|
||||||
|
return; // We will update state manually
|
||||||
if (this.timeState.currentAttemptTime < 0.5) {
|
if (this.timeState.currentAttemptTime < 0.5) {
|
||||||
this.playGui.setCenterText('none');
|
this.playGui.setCenterText('none');
|
||||||
}
|
}
|
||||||
|
|
@ -454,9 +456,6 @@ class MarbleWorld extends Scheduler {
|
||||||
if (this.timeState.currentAttemptTime >= 5.5) {
|
if (this.timeState.currentAttemptTime >= 5.5) {
|
||||||
this.playGui.setCenterText('none');
|
this.playGui.setCenterText('none');
|
||||||
}
|
}
|
||||||
if (this.outOfBounds) {
|
|
||||||
this.playGui.setCenterText('outofbounds');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getStartPositionAndOrientation() {
|
function getStartPositionAndOrientation() {
|
||||||
|
|
@ -1324,7 +1323,10 @@ class MarbleWorld extends Scheduler {
|
||||||
playGui.setCenterText('none');
|
playGui.setCenterText('none');
|
||||||
return null;
|
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) {
|
public function setCursorLock(enabled:Bool) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue