1987 · Thalamus

Delta

This minisite was contributed by chunkypixel, air. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/c64/delta with me to Gold.

A joystick in either port or five keys in play, three function keys on the title, and a pause key with a way out.

01 · Inputs

A joystick in either port, or five keys

Both joystick ports steer the ship at once. The keyboard takes over only if the title screen's F3 option says so.

InputWhereEffect
Joystick, either portplayboth ports are read and combined (read_joysticks, $3375)
W, X, A, D, RETURNplay, after F3up, down, left, right, fire (read_keys, $0C40)
Firetitlestarts the game
F1titleone or two players; turns pass at each death
F3titlejoystick or keyboard
F5titlesound effects or music in play
SPACEtitleshows the three options
RUN/STOPplaypause; fire resumes, T quits to game over (pause_check, $9A30)
RESTOREanywherenothing: the NMI vector points at an RTI at $FFF8

The game reads both joystick ports and ORs them, so a player can plug into either port, and two joysticks held at once steer the ship together. With keyboard control on, read_keys reads W, X, A and D for the four directions and RETURN for fire instead.

How fast the ship answers the stick is not fixed. The speed icon in the shop sets it to 1, 2, 4 or 8 pixels a frame, and buying it again at the top speed goes back to the slowest.

02 · The title screen

Three options, each shown as a sprite

Delta's title screen with the three option sprites: players, controls and music
The title after SPACE: the three option sprites for players, controls and sound.

The title screen's keys are read in its raster interrupt (irq_title_keys, $0C90). F1, F3 and F5 each flip one setting: the number of players ($12CA), joystick or keys ($0FFC), and music or sound effects in play ($0FFD). Each setting is shown by a sprite whose frame the game swaps, from the pairs at $43C0, $43C2 and $43C4.

In a two-player game the players take turns, and the turn passes at each death (swap_players, $1650). Each player keeps their own lives.

03 · Pausing

RUN/STOP pauses, and T gives up

RUN/STOP stops the game where it is (pause_check, $9A30). Fire carries on. Pressing T during the pause ends the game at once and goes to the game-over screen.

RESTORE, which stops many games or resets the machine, does nothing in Delta. The processor jumps through the NMI vector when it is pressed, and the vector points at a single RTI at $FFF8.

04 · The demo

The demo flies on a recorded joystick

The demo on the title replays 63 recorded joystick bytes from $9F40, one every eight frames. The game points its own joystick read at $0F90 for the demo by patching the instruction (demo_joystick_patch), so the ship flies by the same code as in play.

The joystick also enters a name in the high-score table, eight letters long (hiscore_entry_step, $1E52).