/ / v0.2 / Player ← Parkoreen
← v0.2 Overview

How the player character moves, jumps, dies, and respawns — including checkpoint support and mobile controls.

Size & basics

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.

Movement

Jump

Default: 1 jump, configurable via maxJumps. Jump height controlled by jumpForce (default −13.2).

Mobile / touchscreen controls

v0.2 added touchscreen support. On mobile devices, on-screen directional buttons appear for left, right, and jump.

Physics touchboxes

Death & respawn

Death triggers when the hurt touchbox contacts a lethal hazard, or the player falls below the die-line Y. Respawn order:

  1. Last activated checkpoint
  2. Map spawn point

Controls

KeyAction
/ AMove left
/ DMove right
/ W / SpaceJump