1986 · Micro Power

Doctor Who and the Mines of Terror

This minisite was curated by unorig, air.

The game never loads a level. The whole mine is one 7 KB map, tucked into memory the Commodore's own operating system normally uses.

The mine

One map, seven kilobytes

The game never loads a level. The whole mine is one map, and the screen is a window onto it that scrolls wherever the Doctor goes. Drag the map to move around it, and zoom out to see the whole mine. Choose an object, creature, danger, or place from the menu to go to it; an object also gets a Where it is used button that steps through the places it works. Gameplay says what each danger does. The Solution tab steps through the whole route on this map.

Zoom

● Yellow circles: the objects where a new game puts them, drawn as their own sprites when zoomed in from their starting frames ($1D30) and colours ($1850) (positions $1B70/$1BC0, $1C10/$1C60; names from $1770). ◆ Green diamonds: where an object does something, from the code that checks the Doctor's position. ✕ Red crosses: blocks that kill or start the air running out. ▲ Blue triangles: the creatures where a new game puts them, from the same position tables; the controllers then follow their routes. Drag the map to move around it, zoom with the buttons or the mouse wheel, and click a mark to select it.

Every block drawn from the map at map_e000, the block shapes at $3000, the play-area characters at $4000, and each character's colour from $2F00. The orange plus sign (+) is where the Doctor starts. The mine has seven zones, and each zone swaps in one of three sets of shapes and colours for sixteen characters (zone_classify, $AA3D; zone_graphics, $ABCF). This picture draws every zone with its own set.

The map fills $E000-$FBFF, the memory the Commodore's operating system (the KERNAL ROM) normally occupies. The game switches the ROMs out as it starts ($01 = $35), which leaves the RAM underneath free. The map holds 56 rows of 128 blocks, one byte a block. A block is four by four characters, sixteen bytes at $3000 + 16 × its number, so 256 block shapes build the whole mine. Row r starts at $FB80 − 128 × r. Row 0 is the bottom: the game measures heights upward from the floor of the mine.

Colour RAM, the Commodore's separate memory for the colour of each screen cell, is never stored for the map. As the game draws each new row or column onto the screen, it looks up the colour of every character in a 256-byte table (colour_from_chars, $8EB8). So a character is always the same colour, wherever it is.

Seven zones

The mine is split into seven zones by the Doctor's position, checked every eighth frame (zone_classify, $AA3D). Entering a zone puts the creatures of other zones to sleep, wakes that zone's own, and swaps in its shapes for sixteen characters (zone_graphics, $ABCF).

Where the objects work

Choose an object above and press Where it is used to step through the points where it works. With empty hands, F5 works the code lock's clue panel and its buttons (Solution). Why objects work only at these points, and what each is for, is on the Gameplay tab.

Scrolling

The game draws the next view on a hidden screen, so the mine glides

The game keeps two copies of the play screen, at $7800 and $7C00. While one is shown, the game builds the next position of the mine in the other, spread over three frames (coarse_scroll_step, $8C32), and then swaps them. Between those steps the video chip's fine scroll moves the picture a pixel at a time, so the view glides in all eight directions.

Restart points

Every restart point but the first is a save booth (CSC)

The mine has nine restart points, stored as four tables of nine bytes at $9059-$907C. The first is beside the TARDIS. The other eight are the CSCs, the cryostasis chambers, which are also the only places where the game can be saved (Discoveries). When the Doctor comes close to one, that point becomes the current one (check_restart_points, $907D). After he loses a regeneration, the game puts him back at the current point.