1985 · Mastertronic (M.A.D.)

Master of Magic

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

Everything you meet is drawn twice: as a figure one character tall, moving through the view window, and as a picture in the strip along the bottom.

01 · In the view

Every figure is a character from the map's set

In the view window, each creature and each thing lying in sight is a sprite showing one character of the set the map is drawn with. The routine at $0FEF copies the character's eight rows into the top left corner of a sprite and colours it from the map's own colour table.

Each figure built the way $0FEF builds it: the character named for the entry at $4070, its eight rows in the first byte column of the sprite, in one colour, the colour $A400 gives that character, over the floor's dark grey. Under each, how many entries use it and the character's code.

You are sprite 0, a round dot four pixels wide that a new game writes at $3800. Sprites 1 to 7 carry the figures, so seven can be shown at once. With more than seven in sight, $0394 remembers where the last pass stopped, the next pass starts from there, and they take turns. A figure never changes its shape: a creature slides across the floor a pixel at a time and looks the same walking as standing.

The characters for figures lie together, things from $C0 and creatures from $D0. Three in those rows are drawn and no entry uses them: $C9, a round bag, $CE, and $D3, a figure with its arms raised.

02 · In the strip

Thirty pictures for 64 things

Everything you can see appears in the strip at the bottom as a picture, cut from one multicolour bitmap sheet at $6000. Most kinds share one picture, and seven are drawn twice as tall.

Pictures cut from the sheet the way $1515 copies them into the strip. Numbers from the creature tables; "chases" is how many decisions a creature keeps hunting you after losing sight of you. Doors and staircases have pictures too: the strip shows one for every door or staircase character in the view window.

A creature whose body strength goes below zero is marked dead by bit 7 of that byte, and the strip lays a sprite over its picture that spells DEAD, in light red, doubled in size. There are eight such sprites, all pointing at the same shape at $A500.

03 · The loading picture

A man at the mouth of a cave

Mastertronic's 1985 cassette, on its Added Dimension label, loads its picture with the screen switched off, then puts it up whole, about 95 seconds into the tape: a man in a red shirt stands at the mouth of a cave, trees and a pale sky behind him, one arm pointing out and something glittering yellow at his feet, and THE MASTER OF MAGIC runs down the right in spiky blue letters. It stays up, in silence, for three minutes and 54 seconds while the game loads.

The cassette's own bytes, drawn as the video chip draws them, with the border as the loader painted it in one frame.

The stripes are the loader's. While the tape plays, it moves the border on to the next of the C64's sixteen colours again and again, faster than the screen is drawn, so the border fills with bands of every colour.