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 @@ - +

Move Player To:

@@ -138,4 +146,4 @@

Move Player To:

- \ No newline at end of file + diff --git a/static/wasm_exec.js b/static/wasm_exec.js index e31c17f..29427d9 100644 --- a/static/wasm_exec.js +++ b/static/wasm_exec.js @@ -499,4 +499,4 @@ process.exit(1); }); } -})(); \ No newline at end of file +})(); diff --git a/wasm/bundle.go b/wasm/bundle.go index 4299c61..79e070f 100644 --- a/wasm/bundle.go +++ b/wasm/bundle.go @@ -92,7 +92,7 @@ func main() { core.GameInputEditModeMoveDown: false, } - if isKeyDownMap["ControlLeft"] { + if isKeyDownMap["ShiftLeft"] { if isKeyDownMap["ArrowUp"] { inputMap[core.GameInputCameraZoomIn] = true }