This commit is contained in:
Renan LE CARO 2025-03-22 16:04:25 +01:00
parent 5725d90470
commit cb4b1ea49e
16 changed files with 330 additions and 213 deletions

View file

@ -45,6 +45,8 @@ export function addToTotalPlayTime(ms: number) {
export function gameOver(title: string, intro: string) {
if (!gameState.running) return;
if (gameState.isGameOver) return;
gameState.isGameOver = true;
pause(true);
stopRecording();
addToTotalPlayTime(gameState.runStatistics.runTime);