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.

The two levels with places to get lost in: the atmosphere processor's complex of rooms, which the APC rescue and the Newt rescue share, and the air duct maze.

01 · The complex

One map of 256 rooms serves two levels

The APC rescue and the Newt rescue take place in the same 16 by 16 grid of rooms. Each level keeps its own copy of the map, byte for byte the same, and draws only the room the marine or Ripley stands in.

Point at a room to read its byte.

Drawn from room_map ($9498 in level 2, $95FB in level 5). A line between two rooms is a doorway. APC is the APC room, L the lift, N Newt's room, and Q the Queen's chamber. Hatched rooms have bit 5 set. Rooms drawn with a dashed outline have bit 7 set, and no marine starts the APC rescue in one.

Each room is one byte. Its low four bits are its doorways: far, right, near, and left, in that order. Walking through the right doorway adds 1 to the room number and the left one takes 1 away (exit_right, $8698), and the near and far doorways add and take away 16 (exit_near, $872A). A byte of $80 or 0 is no room at all. Bit 7 keeps the marines out of a room at the start of the APC rescue: random_room ($8984), which places each of them, tries again when it draws a room with that bit set. All of the rooms marked so lie in the map's lower left, the part the Newt rescue's Queen's chamber is in.

The screen shows one room at a time, in perspective, built from four quarters of characters. draw_room ($82A2) picks one of 32 views by the room's doorways, so every room with the same doorways looks the same. Bit 5 picks the second set of 16 views, and in the Newt rescue it also lets a second alien into the room (aliens_enter, $8824). Bit 4 marks the three rooms with a view of their own: the APC (room $BE), the lift ($56), and the Queen's chamber ($C3).

In the APC rescue, a marine in room $BE is safe (marines_group, $8905). In the Newt rescue, Ripley starts in the lift room, Newt waits in room $C1, and the chance of meeting an alien grows with the room's number, from $40 plus half the number, out of 256.

02 · The air ducts

The duct maze is 32 cells wide, and a third of it fits on screen

Level 4's maze is a map of 32 by 8 cells. The screen holds ten cells across, and the view scrolls sideways after the squad.

Point at a cell to read its byte.

Drawn from maze_map ($9430). Each line is a duct. A cell drawn with a gap in one of its ducts is a crossing, where the other duct passes over it. Shaded cells use a tile of their own. EXIT marks the way out, below column 29.

A cell's low four bits are the ways open from it: 1 down, 2 left, 4 up, and 8 right. A cell with only 2 or only 8 would be a dead end facing one way, and the game uses those two values for crossings instead (cell_open, $8D7A): in a $02 cell a sprite going up or down passes behind the duct, and in an $08 cell one going left or right does. A squad that enters a crossing can only go straight on.

column_build ($86D9) builds the screen a column at a time from each cell's tile, four characters wide and three deep, and writes a grid label of a letter and a number into blank tops of cells. The squad wins when it reaches x $0740, y $BE, the duct out at the bottom of column 29 ($8198).