1986 · Domark

Friday the 13th: controls

This minisite was curated by air, unorig.

Four keys or a joystick in port 2, and fire does three jobs.

01 · Controls

Four keys, a joystick, and no RUN/STOP

KeyJoystick in port 2Does
Aleftwalk left
Srightwalk right
;upwalk up, into the room
/downwalk down, out of the room
SPACEfirestanding: pick up, put down, or swap; walking: throw or swing

read_keyboard scans the whole keyboard every frame into one byte per key at key_table, and read_stick turns five of them into movement and fire; the joystick replaces the keys whenever it is moved. RETURN is read as well, and nothing uses it. RUN/STOP does nothing: game_start points the KERNAL's STOP vector at a routine that always answers "not pressed".