mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-21 20:46:14 -04:00
Build 29044264
This commit is contained in:
parent
5725d90470
commit
cb4b1ea49e
16 changed files with 330 additions and 213 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue