feat: ZQSD turn keys + wordmark-only welcome modal

- physical A/D keys (Q/D on AZERTY) now turn instead of strafing;
  strafe moves to the physical Q/E row (A/E on AZERTY)
- welcome modal drops the floating duck sticker, keeps the wordmark

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
tfrere
2026-08-20 13:48:26 +02:00
parent ab9dec213e
commit ee2d470a87
3 changed files with 10 additions and 22 deletions
+6 -3
View File
@@ -553,11 +553,14 @@ function refreshVelCmd() {
velCmd[2] = held.has("turnl") ? VEL_ANG : held.has("turnr") ? -VEL_ANG : 0;
}
// e.code is physical position, so one map covers QWERTY and AZERTY:
// WASD/ZQSD run + turn, the physical Q/E row (A/E on AZERTY) strafes.
const KEYMAP = {
ArrowUp: "fwd", KeyW: "fwd", KeyZ: "fwd",
ArrowUp: "fwd", KeyW: "fwd",
ArrowDown: "back", KeyS: "back",
ArrowLeft: "turnl", ArrowRight: "turnr",
KeyA: "left", KeyQ: "left", KeyE: "right", KeyD: "right",
ArrowLeft: "turnl", KeyA: "turnl",
ArrowRight: "turnr", KeyD: "turnr",
KeyQ: "left", KeyE: "right",
};
window.addEventListener("keydown", (e) => {