DYSTOPIANPIXEL
PHASELOCK / NEXTBASIC / DYSTOPIAN PIXEL

Stage 3 — Create native ZX Spectrum Next sprite assets

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.

Once the player design was stable enough, the artwork was converted into the actual binary formats used by the game. This stage is important because a concept image that looks correct on a PC is not proof that the hardware sprite bytes, palette indices or transparency conventions are correct.

Sprite file

PHASELOCK_PLAYER.SPR contains 16 normal 8-bit hardware sprite patterns. Each 16×16 pattern contains 256 pixels, and each pixel is one byte, so one pattern occupies exactly 256 bytes. Sixteen patterns therefore occupy 4096 bytes.

Sprite size calculation

16 pixels × 16 pixels = 256 pixels
256 pixels × 1 byte     = 256 bytes per 8-bit pattern
16 patterns × 256 bytes = 4096-byte PHASELOCK_PLAYER.SPR

Palette file

PHASELOCK_PLAYER.PAL is a native 256-entry ZX Spectrum Next 9-bit palette. Each entry occupies two bytes, giving a 512-byte file. The project uses palette index $E3 (decimal 227) as the transparent sprite colour.

A critical project rule is to preserve the established palette rather than silently remapping the sprite to a different transparency index or recolouring frames independently. Consistent indices let all 16 patterns share the same palette and make later asset management predictable.

Hardware-first verification

The generated .SPR and .PAL were repeatedly reconstructed into preview images from the actual binary bytes and then tested on a real ZX Spectrum Next. The hardware test, not the concept artwork, is the acceptance test for the player asset.

The most important visual refinements were made to the Down sequence. Earlier experimental methods that vertically warped or compressed the sprite introduced blurred rows, horizontal seams and unnatural head-only movement. Direct integer pixel edits produced a much cleaner result.