Display score on game over
This commit is contained in:
		@@ -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 = "#";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user