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.

Six levels, each a different game, joined by pages of the film's story. Here is how each one is played, and what decides it in the code.

01 · The title

The credits keep time with the music

The title screen builds the ALIENS logo row by row while the credits change underneath it. Nothing in the screen's code counts frames to time them: the tune does it.

The title screen: the ALIENS logo over the credits
The title screen, with the logo complete.

Tune 2, the title's music (hear it on the Music tab), holds 30 markers. Each is a command $F4 in the tune, which calls count_marker ($2A54) to add one to a count. title_loop ($8085) looks the count up in two tables, the credit to show (credit_steps, $8295) and the step of the logo (logo_steps, $82B9). One pass of the tune lasts about 57 seconds, and then the screen clears and the tune starts again. RETURN starts the game, but only from the fifth marker of the first pass on ($825D), so the first credits always show.

02 · The briefing

Four pages of story, a scene on the Sulaco, and a test

Before the first level, the game tells the film's opening in four pages of text, then shows the marines in the Sulaco's hold in fourteen speech balloons. RETURN moves the story on.

A page of the briefing text
A page of the briefing, printed into the bitmap in the engine's font.
The equipment identification screen with the glove pointer
The equipment identification. The glove is two sprites and an outline (see them on the Graphics tab).

Then comes the equipment identification (equip_loop, $8FD4). The game names seven pieces of kit in turn, from the pistol to the camera, and the player points the glove at each and presses fire. The glove counts as on the piece when it is inside the piece's box in equip_boxes ($90AD). A wrong piece prints IMPROPER IDENTIFICATION and asks for the same piece again, as often as it takes (equip_improper, $9088). Every page of text between the levels plays the briefing tune.

03 · Status codes

Each code carries the marines still alive

After each level, a status screen shows the marines and a five-character code. Typed at the start of a game, the code begins at the level after it, with the same marines.

The Colonial Marines status update screen
The status screen, where codes are shown after a level and typed at the start.

The eight marines are the eight bits of one byte, $0204. make_code ($1720) turns that byte, XORed with the stage's key from code_keys ($1730), into three digits, the stage into the fourth, and a check value into the letter. At the start, apply_code undoes it. The codes 2727H and 1506E were typed in and accepted.

04 · Level 1

The drop-ship: stay inside the rings

The drop-ship dives from the Sulaco to the planet down a pipe of rings. The joystick steers it, pulled back to climb and pushed forward to dive, as a pilot would.

The drop-ship level: rings of the pipe and the profile compliance indicator
The pipe of rings, with the profile compliance indicator at the right.

A script of 58 timed steps runs the descent (script_tick, $847C). Each ring of the pipe is a sprite that comes nearer (how the rings are drawn). The drop-ship crashes when the nearest ring strays too far from the centre of the screen: deviation_check ($8363) takes the larger of its two offsets twice, adds the smaller, and aborts the drop at $50 or more. The level has a tune of its own, which plays only here (hear it).

05 · Level 2

The APC rescue: four marines, one at a time

Four marines are lost in the atmosphere processor, each shown on a pair of monitors. F1, F3, F5, and F7 switch the view between them, and each must be walked back to the APC through a complex of rooms.

The APC rescue: a marine in a room, the motion tracker and the monitors
A marine in one room of the complex, with the motion tracker and the marines' monitors.

The complex is a grid of 16 by 16 rooms (see the map), and the APC is room $BE. Every marine has a timer, and when it runs out the aliens attack him (marines_timers, $8A16). An attack brings 16 aliens to kill. A marine who is not on the monitors fights it out by chance: each tick an alien may die, or he may be caught. Two marines in one room keep each other safe. The level ends when every marine is dead, caught, or in the APC room, and has stayed so for 55 passes (end_check, $80B4).

06 · Level 3

The operations room: hold the door until the fuse burns

A marine with a flame thrower holds off aliens dropping into five lanes while a cutter burns through the door behind him. The joystick moves him up and down, and fire shoots the flame.

The operations room: aliens in five lanes and the marine with the flame thrower
The five lanes, with the fuse across the top.

The flame burns any alien within 36 pixels of it. Touching an alien with the flame thrower but no flame pushes it back, for a little less time with each push (lane_hit, $8721). The fuse burns a step every three ticks, and at step 39 the level is won (fuse_tick, $83F8). An alien that gets past takes a marine, the highest bit of the marines byte first (grab_marine, $8522), so the marines are lost in a fixed order.

07 · Level 4

The air ducts: find the way out

Ripley, Newt, and the marines crawl through a maze of air ducts seen from above, a third of it on screen at a time. Fire throws a hand grenade, which costs a marine.

The air duct maze seen from above
The air duct maze. The squad is one sprite, its shadow another.

The maze is 32 cells across and 8 down (see the map), and the way out is at the bottom of column 29. A grenade blows up the alien holding the squad and takes a marine (marine_lose, $8EB8). An alien that holds on for 90 passes takes one too. Aliens come out of vents near the squad, chosen by zones of the map (alien_spawn, $90B6), and two more follow its trail.

08 · Level 5

The Newt rescue: seventeen minutes on a fast clock

Ripley goes back into the complex for Newt, with 99 rounds, 8 flares, and a clock counting down from 17:00. The range locator gives her distance and direction to Newt.

The Newt rescue: Ripley in a room, the clock and the range locator
Ripley in the complex, with the clock, the rounds, and the range locator.

The rooms are level 2's (see the map): Ripley starts in the lift room $56, and Newt waits in room $C1. The clock is not in real seconds. The game takes one off every three ticks of a counter that ticks every six frames on a PAL machine, so the 17 minutes last about six minutes of real time. Explosions come at 16:43, 12:52, 8:25, 5:37, and 2:11, and at 0:00 the station blows. The space bar drops a flare to mark a room (flare_drop, $917E). The range locator counts ten units to a room (locator, $93A1), and Newt is found when it reads 0 with no aliens in the room. Once found, she follows Ripley back to the lift.

09 · The lift

A ride up in the lift, then straight into the fight

A short scene follows the Newt rescue: the power loader rising in the lift, lamps sliding past. The scene has no briefing after it, because it ends in a way no other stage does.

Every other stage ends at stage_complete ($089C), which shows the status screen and the next briefing. The lift scene ends at stage_skip ($08D8), which loads the next stage and starts it at once.

10 · Level 6

The Queen: tire her, grip her, and drop her out

Ripley in the power loader faces the Queen. Swinging the loader's arms into her slows her down; when she is weak enough, the claws grip her and the airlock takes her.

The Queen fight: the power loader and the Queen
The power loader and the Queen, both built from sprites (see how).

An arm that meets her as it swings towards her strikes her (strike, $8851): she slows, cries out, and reels back. Over time she gets her speed back (queen_recover, $889A). She wins by reaching the bottom of the screen at full speed. Fire closes the claws on her. Holding it opens the airlock, and letting go while she is over it, between x $30 and $7F, drops her in (grip_tick, $846E). Let go anywhere else and she breaks free.

11 · The ending

The ending is kept for a game played straight through

With the Queen gone, the game shows Bishop's picture, the hypersleep text, and The End, to tune 2. A player who skipped a level sees none of it.

The manual says a level can be skipped by holding a key and pressing RESTORE, at the cost of the ending. The code agrees. stage_abort ($08AC), reached with the up-arrow key held, sets $0202, and the ending ($88DA) goes straight to the wait for RETURN when it is set. Every status code after a skip shows as five asterisks. The Discoveries tab has what this cracked disk changes about it.