Your progress
Your place is saved automatically on this browser.
The current v0.13 reference program is intentionally procedural and grouped by responsibility. The line-number ranges make it easier to add later systems without mixing input, collision, animation and display code.
| Line range | Responsibility |
|---|---|
| 5–20 | Save line, main entry and STOP guard. |
| 1000s | main procedure. |
| 2000s | Initialisation, sprite/palette loading, grid state, wall/phase constants, global phase state and development text. |
| 3000s | Main input loop. |
| 4000s | Key-release gating. |
| 5000s | Directional movement requests. |
| 6000s | Logical destination calculation, boundary/wall checks, resulting-phase calculation and phase-floor approval. |
| 7000s | Lean/travel/recover sprite animation. |
| 8000s | Temporary logical-coordinate, movement-status and phase display. |
| 9000s | Temporary test level, wall/phase tile helpers and active/inactive phase-tile redraw. |
The program also retains the development save line at the top:
This is a development convenience so that running the source preserves the current program at the agreed project path on the Next.
