How the player character moves, jumps, dies, and respawns — including checkpoint support and mobile controls.
The player is a 32×32 px square (1 grid cell). They spawn at the spawn point and respawn there (or at the last-touched checkpoint) on death.
playerSpeed in map config (default 5).Default: 1 jump, configurable via maxJumps. Jump height controlled by jumpForce (default −13.2).
v0.2 added touchscreen support. On mobile devices, on-screen directional buttons appear for left, right, and jump.
x:0, y:8, w:32, h:24 — for solid collision.x:4, y:6, w:24, h:24 — for hazard damage detection.Death triggers when the hurt touchbox contacts a lethal hazard, or the player falls below the die-line Y. Respawn order:
| Key | Action |
|---|---|
| ← / A | Move left |
| → / D | Move right |
| ↑ / W / Space | Jump |