Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down Expand Up @@ -118,7 +126,7 @@
<button class='export-btn' onclick='exportGame()'>Export</button>
<button class='import-btn' onclick='importGame()'>Import</button>
<textarea id="import-export-val" rows="30"></textarea>

<h3>Move Player To:</h3>
<div class="editor-move-to">
<div class='move-to-coord'>
Expand All @@ -138,4 +146,4 @@ <h3>Move Player To:</h3>
</div>
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion static/wasm_exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,4 +499,4 @@
process.exit(1);
});
}
})();
})();
2 changes: 1 addition & 1 deletion wasm/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func main() {
core.GameInputEditModeMoveDown: false,
}

if isKeyDownMap["ControlLeft"] {
if isKeyDownMap["ShiftLeft"] {
if isKeyDownMap["ArrowUp"] {
inputMap[core.GameInputCameraZoomIn] = true
}
Expand Down