mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix oob sequence
This commit is contained in:
parent
cdb801445c
commit
0968761c6f
1 changed files with 6 additions and 4 deletions
|
|
@ -524,6 +524,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');
|
||||||
}
|
}
|
||||||
|
|
@ -540,9 +542,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() {
|
||||||
|
|
@ -1736,7 +1735,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;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Sets a new active checkpoint. */
|
/** Sets a new active checkpoint. */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue