1987 · Electric Dreams Software

Fire Trap

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

A joystick in port 2 does everything, and the keyboard stands in for it whenever the stick is idle.

The controls

One stick and one button

ActionJoystick (port 2)Keyboard
Climb upupQ
Climb downdownZ
Move leftleft,
Move rightright.
Spray, and free a personfireSpace
PauseRUN/STOP

Up lowers the firefighter's vertical position and down raises it, because the game measures that position down from the top of the building.

The keyboard is read only when the joystick is idle: read_keyboard_joystick ($FFAA) turns the five keys into the joystick's five bits through a table at $CFC6. The same routine runs every frame, so a held key and a held direction behave alike. The raster handler reads both joystick ports and the keyboard matrix each frame (raster_list_next, $2944), but the game acts on port 2.

RUN/STOP stops the timer and waits for the key to be released, pressed, and released again (pause_check, $FFCC). The name-entry screen for a high score is steered by the joystick over a grid of thirty cells (name_entry_loop, $FD22).