1986 · Activision

Aliens

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/aliens with me to Gold.

A joystick for every level, RETURN for the story, and a few keys that only one level reads. The engine reads the keyboard and both joystick ports itself.

01 · The joystick

Either joystick port works

The manual says to plug the joystick into port 1. The game reads both ports at once, so a joystick in port 2 works just as well.

read_joysticks ($0BFE) reads port A and port B of CIA 1, the chip both control ports are wired to, and combines them, so a direction or the fire button on either stick counts. The routine keeps what is held in $0222 and what was newly pressed in $0223, which every level reads.

WhereJoystickFire
Equipment identificationmoves the glovenames the piece under it
Level 1, the drop-shipsteers: back to climb, forward to divenone
Level 2, the APC rescuewalks the marine through the roomsshoots; the marine cannot turn while firing
Level 3, the operations roomup and down along the lanesthe flame thrower
Level 4, the air ductsleads the squad through the ductsa hand grenade, at the cost of a marine
Level 5, the Newt rescuewalks Ripley through the roomsshoots, 99 rounds
Level 6, the Queenswings the loader's armscloses the claws; hold to open the airlock, release to drop her

02 · The keys

Keys for the story, the marines, and the flares

The engine scans the keyboard itself, eight rows at a time (read_keys, $0B96), and turns the first new key into a character for the levels to read.

KeyWhat it does
RETURNstarts the game from the title, turns the pages of the story, and enters a status code
Letters and digits, DELtype a status code at the start; DEL rubs out a character
F1, F3, F5, F7switch between the four marines in level 2 (marine_switch, $899F), unless the one on the monitors is under attack
Spacedrops a flare in level 5 (flare_drop, $917E), one to a room
RUN/STOPpauses and unpauses, stopping the music's timer and silencing the three voices (restore_choose, $09B0)
RUN/STOP held, then RESTOREstarts the level again, with the marines it began with (nmi_restart, $0959)
Up-arrow held, then RESTOREskips the level, and gives up the ending (why); not in the lift scene

RESTORE is not an ordinary key: it is wired to the processor's non-maskable interrupt. Each frame frame_tick ($099D) points that interrupt at one of three handlers by what is held: one that ignores it, nmi_abort ($0956) with the up-arrow key, or nmi_restart with RUN/STOP. Left alone for a long while, the game turns the volume down and blanks the screen until a key is pressed.