diff --git a/static/index.html b/static/index.html index fb3251d..3565f5b 100644 --- a/static/index.html +++ b/static/index.html @@ -9,19 +9,27 @@ }); function onGameOver() { - alert(` - GAME OVER! + if (confirm(` + GAME OVER! - (refresh to try again) - `); + Would you like to play again? + `)) { + location.reload(); + } else { + alert(` + GAME OVER! + + (refresh to try again) + `); + } } alert(` Controls: - Arrow Keys: Move Player - - Ctrl + Arrow Keys: Move Camera + - Shift + Arrow Keys: Move Camera - Space: Jump - + Rules: 1. Get as high up as you can! 2. Avoid the red square! @@ -118,7 +126,7 @@ - +