This commit is contained in:
Renan LE CARO 2025-04-20 12:56:50 +02:00
parent 1ba55bf2a6
commit 4d7d57f17f
15 changed files with 165 additions and 120 deletions

View file

@ -9,7 +9,7 @@ import {
pickedUpgradesHTMl,
reasonLevelIsLocked,
} from "./game_utils";
import { getSettingValue, getTotalScore, setSettingValue } from "./settings";
import {askForPersistentStorage, getSettingValue, getTotalScore, setSettingValue} from "./settings";
import { stopRecording } from "./recording";
import { asyncAlert } from "./asyncAlert";
import { rawUpgrades } from "./upgrades";
@ -30,6 +30,7 @@ export function gameOver(title: string, intro: string) {
gameState.isGameOver = true;
pause(true);
askForPersistentStorage()
stopRecording();
addToTotalPlayTime(gameState.runStatistics.runTime);