DYSTOPIANPIXEL
PHASELOCK / NEXTBASIC / DYSTOPIAN PIXEL

Current v0.13 source map

Build a top-down phase puzzle game, one hardware-tested development stage at a time.

MILO in the Blue and Amber Phase Grid
Concept artwork · PHASELOCK development tutorial through v0.13.

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 rangeResponsibility
5–20Save line, main entry and STOP guard.
1000smain procedure.
2000sInitialisation, sprite/palette loading, grid state, wall/phase constants, global phase state and development text.
3000sMain input loop.
4000sKey-release gating.
5000sDirectional movement requests.
6000sLogical destination calculation, boundary/wall checks, resulting-phase calculation and phase-floor approval.
7000sLean/travel/recover sprite animation.
8000sTemporary logical-coordinate, movement-status and phase display.
9000sTemporary test level, wall/phase tile helpers and active/inactive phase-tile redraw.

The program also retains the development save line at the top:

5 SAVE "C:/HOME/BASIC/GAMES/PHASELOCK/GAME.BAS"

This is a development convenience so that running the source preserves the current program at the agreed project path on the Next.