1986 · Activision

Alter Ego

This minisite was contributed by air, 64kramsystem. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/c64/alter-ego with me to Gold.

Each of the seven stages of a life is a map: rows of pictures joined by lines, each picture a block of scenes waiting to be played. Here are all seven, drawn whole by the game's own drawing routines, written again in JavaScript, from the headers on its six disk sides.

01 · The maps

Seven stages, each a map of its years

The game shows a map four rows at a time, and opens it on the last four, with the arrow on the picture the stage starts from. Choose a stage, then a picture, to see what its word on the disk says.

Beside the window

Choose a picture on the map, or one of the choices beside it.

The map is drawn a pixel row at a time by render_life_map_cell_or_connector ($57BA) and the two routines under it ($596E, $5A5D), the port's copies of them, on the pictures in the game's memory under the KERNAL ($E800, 240 bytes each). The amber frame is the picture the stage starts from, which the game plays at once; the dashed box is the window as the stage opens.

02 · The stages

Shorter maps for the later years

Each stage's file starts with a header: the first and last age it covers, how fast its scenes move the years on, how many stages are left counting this one, the eight choices beside the map, the map itself, the place the arrow starts and a table of the stage's scene blocks (load_stage_header, $88A9 in the life program). A picture's scene block is played when the player fires on it, and the block's length moves the years and the money on (play_life_map_cell, $8A85).

StageAgesFileRowsPictures to playScene blocks

The border takes the stage's colour from the table at $CAA4 in the life program. Childhood and Old Age share the second disk side's file, MAP27: Old Age's header begins where the file's first four bytes point (open_stage_map_stream, $881B).

03 · The format

A word for each place on the map

A map is three 16-bit words to a row, read into memory at $81F7. The low byte is the scene block the place plays. The next four bits pick its picture, 1 to 8, and 0 leaves the place empty. The top four bits are the lines: up, down, right and left of the place. A line through an empty place is drawn across it, so a line can turn a corner where there is no picture.

lines: left, right, down, uppicturescene block

Choose a picture on the map above to see its word here.

Once a picture's scenes have been played, the game clears its four picture bits (play_life_map_cell) and leaves the lines, so the place is drawn empty with the lines still running through it. The stage ends when no picture is left, or when the years pass the stage's last age. Most of a map is six of the pictures, the body, the books, the head, the walking man, the heart and the two pairs of people, five or six of them to a stage. The landscape appears once, near the end of Old Age, and the baby never: the game draws it alone, as Infancy begins.

The eight pictures of the map, 48 by 40 pixels each, from $EA50 on, after the eleven of the choices. The game draws the first, a baby, alone in the middle of the screen as Infancy begins, from the words at $C29C that the life program's file gives it.