Player physics, movement, hitboxes, and respawn logic.
The player sprite is 32×32 px, matching one grid cell.
| Property | Default value |
|---|---|
| Gravity | 0.71 per tick |
| Jump force | -13.2 (upward) |
| Move speed | 5 px/tick |
| Max jumps | 1 |
All values are overridable per-map in Map Config.
| Box | Offset from top-left | Purpose |
|---|---|---|
| Ground | x: 0, y: 8, w: 32, h: 24 | Collision with solid surfaces (landing, pushing against walls/ceilings) |
| Hurt | x: 4, y: 6, w: 24, h: 24 | Checked against spike and hazard hitboxes to determine death |
| Key | Action |
|---|---|
| A / D | Move left / right |
| W / Space | Jump |
| R | Respawn (in tester) |
The player has a coin count. Collecting a Coin object increases their count by the coin's coinAmount. The coin counter HUD is shown when Show Coin Counter is enabled in Map Config.