mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 13:36:15 -04:00
wip
This commit is contained in:
parent
530e94f704
commit
d43dd90a86
23 changed files with 268 additions and 152 deletions
|
@ -15,6 +15,7 @@ import { asyncAlert } from "./asyncAlert";
|
|||
import { rawUpgrades } from "./upgrades";
|
||||
import { run } from "jest";
|
||||
import { editRawLevelList } from "./levelEditor";
|
||||
import { openCreativeModePerksPicker } from "./creative";
|
||||
|
||||
export function addToTotalPlayTime(ms: number) {
|
||||
setSettingValue(
|
||||
|
@ -32,8 +33,14 @@ export function gameOver(title: string, intro: string) {
|
|||
stopRecording();
|
||||
addToTotalPlayTime(gameState.runStatistics.runTime);
|
||||
|
||||
if (typeof gameState.isEditorTrialRun === "number") {
|
||||
editRawLevelList(gameState.isEditorTrialRun);
|
||||
if (typeof gameState.startParams.isEditorTrialRun === "number") {
|
||||
editRawLevelList(gameState.startParams.isEditorTrialRun);
|
||||
restart({});
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof gameState.startParams.isCreativeRun) {
|
||||
openCreativeModePerksPicker();
|
||||
restart({});
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue