attempt replay fixes

This commit is contained in:
RandomityGuy 2025-03-21 19:13:27 +05:30
parent 5e6e985dbf
commit a686be2ffd
2 changed files with 3 additions and 3 deletions

View file

@ -2359,7 +2359,8 @@ class MarbleWorld extends Scheduler {
} else {
nextLevelCode();
}
}, mission, this.gameMode.getFinishScore(), this.gameMode.getScoreType());
}, mission, this.gameMode.getFinishScore(),
this.gameMode.getScoreType(), this.replay.write());
MarbleGame.canvas.pushDialog(egg);
this.setCursorLock(false);
return 0;

View file

@ -28,7 +28,7 @@ class EndGameGui extends GuiImage {
var scoreSubmitted:Bool = false;
public function new(continueFunc:GuiControl->Void, restartFunc:GuiControl->Void, nextLevelFunc:GuiControl->Void, mission:Mission, score:Float,
scoreType:ScoreType) {
scoreType:ScoreType, replayData:haxe.io.Bytes) {
var res = ResourceLoader.getImage("data/ui/xbox/BG_fadeOutSoftEdge.png").resource.toTile();
super(res);
this.horizSizing = Width;
@ -189,7 +189,6 @@ class EndGameGui extends GuiImage {
continueFunc(nextButton);
}
bottomBar.addChild(nextButton);
var replayData = MarbleGame.instance.world.replay.write();
var submitScore = () -> {
var lbScoreValue = score;
if (scoreType == Score)