Display score on game over

This commit is contained in:
Pierre HUBERT 2020-03-25 20:46:59 +01:00
parent 2e345be0ea
commit 2e02583e03

View File

@ -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 = "#";
} }