This commit is contained in:
Renan LE CARO 2025-04-20 13:12:10 +02:00
parent 4d7d57f17f
commit b3949d8c41
11 changed files with 139 additions and 79 deletions

View file

@ -9,7 +9,12 @@ import {
pickedUpgradesHTMl,
reasonLevelIsLocked,
} from "./game_utils";
import {askForPersistentStorage, 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,7 +35,7 @@ export function gameOver(title: string, intro: string) {
gameState.isGameOver = true;
pause(true);
askForPersistentStorage()
askForPersistentStorage();
stopRecording();
addToTotalPlayTime(gameState.runStatistics.runTime);