Display score on game over
This commit is contained in:
parent
2e345be0ea
commit
2e02583e03
@ -323,7 +323,7 @@ async function startGame(gameID) {
|
|||||||
function gameOver() {
|
function gameOver() {
|
||||||
audioEl.pause();
|
audioEl.pause();
|
||||||
playAudio("assets/gameOver.mp3");
|
playAudio("assets/gameOver.mp3");
|
||||||
alert("Game over !!!");
|
alert("Game over !!! (Score: " + score + ")");
|
||||||
location.href = "#";
|
location.href = "#";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user