1988 · Lucasfilm Games

Zak McKracken and the Alien Mindbenders

This minisite was contributed by air. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/c64/zak-mckracken-and-the-alien-mindbenders with me to Gold.

Every room in the game, decoded from the two disk sides the way the game decodes them, with the things in each room that can change drawn over it.

01 · The rooms

Every room, with its objects and walk boxes

Pick a room, then click a thing in it to switch its picture on or off, the way the game does when a door opens or something is taken.

Numbers written with a $ are addresses in the computer's memory, in hexadecimal; each one links to the game's code on the Source code tab. A room is a screen of characters, tiles of 8 by 8 pixels, 16 rows high and from 40 to 120 columns wide. The camera shows 40 columns at a time and scrolls a column at a time as Zak walks. Each room brings its own 256 characters, so no two rooms need to share a single tile.

A room's resource holds five packed streams: its character set, then the character, the colour and the mask of every cell, a column at a time, then the mask's own characters. The game unpacks all of them with one small routine ($0104 and $0122). The routine reads a code byte and either copies the bytes after it as they are, or repeats one byte, or repeats one of four bytes the stream names at its start as its commonest. Most of a room is a few colours repeated down a column, so a room of 40 columns fits in about 3,000 to 6,000 bytes.

The things the player can pick up or change are objects, and each object can carry a picture of its own: a rectangle of characters, colours and mask that is laid over the room. The game draws an object's picture when bit 7 of its state is set ($31CA), so an open door is a picture over a closed one, and a taken item is a picture switched off. An object can also hang on another one, its parent, and is drawn only while its parent is in the state it needs: the phone bill is drawn only while the drawer it lies in is open.

02 · The disks

Which disk side each room is on

The game comes on two disk sides, and asks for the other one when Zak goes to a room on it. Click a room to open it above.

The game reads each room's side from a table it loads when it starts ($6E4E), with the track and sector its file starts at ($6E89). A room's file holds the room and, after it, the costumes, scripts and sounds that live with it, each one found by its offset in the file. Room 47 holds no picture at all. Its file carries the music: the player and the four tunes.