DYSTOPIANPIXEL
PHASELOCK / NEXTBASIC / DYSTOPIAN PIXEL

Project conventions and implementation assumptions

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 items in this section are project conventions and implementation assumptions rather than reader prerequisites. They define the technical baseline used by the current PHASELOCK builds. When one of these conventions changes, the relevant later chapter should record the change explicitly.

AreaCurrent assumption / convention
Target machineZX Spectrum Next, tested on real hardware.
LanguageNextBASIC under NextZXOS.
Game structureTop-down, single-screen puzzle levels.
Player tile size16×16 pixels.
Sprite formatNormal 8-bit 16×16 hardware sprite patterns; 256 bytes per pattern.
Player pattern count16 patterns: four directions × four pose stages.
PaletteNative ZX Spectrum Next 9-bit .PAL file, 512 bytes.
TransparencyProject transparency index is decimal 227 / $E3.
Primary controlsQ = Up, A = Down, O = Left, P = Right.
Movement ruleOne successful key press requests exactly one tile of movement.
Input gatingThe key must return to neutral/released before another tile move is accepted.
Current play grid20×16 logical tiles, covering the full 320×256 hardware-sprite coordinate area including the sprite border.
Current source baselinePHASELOCK v0.12 Blue/Amber phase-tile reference build.

Project file layout

Agreed project structure

PHASELOCK/
├── PHASELOCK.BAS            (eventual main tokenised program)
├── PROJECT_MANIFEST.JSON
└── ASSETS/
    ├── GRAPHICS/
    │   ├── SPRITES/
    │   │   ├── PHASELOCK_PLAYER.SPR
    │   │   └── PHASELOCK_PLAYER.PAL
    │   └── TILEMAPS/
    ├── AUDIO/
    └── DRIVERS/

During iterative hardware tests, smaller source files and versioned test packages may be used. The structure above remains the intended project organisation as the game grows.