1987 · Activision

Galactic Games: the Marathon's course

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/galactic-games with me to Gold.

Four of the five events happen on one screen. The Metamorph Marathon is the exception: an obstacle course 256 tiles long and 32 tall, seen ten tiles by four at a time. Here it is whole, drawn from the game's own map.

01 · The course

Eight thousand pixels of cliffs, shafts, and tunnels

The run starts on the grass at the left and ends at column 254. On the way are cliffs only the Flyer can climb, shafts only the Jumper can drop down safely, rock the Burrower has to dig through, and sixteen power pills. Click anywhere on the course to see that part as the game shows it.

The whole course at a quarter size. S marks the start, the dashed line the finish, and each numbered ring a power pill. The white frame is the view shown below.

‹↑↓›

With the marks on, a tile crossed by lines from top left to bottom right is solid; one crossed both ways is solid and too hard to dig. Each map byte at $8D00 is a tile: its low six bits pick one of the 64 tiles, bit 7 says it is solid and bit 6 that it is too hard for the Burrower. A row of the map is a page, 256 tiles; draw_view draws four rows of ten from the view's corner.

A run starts with the view's corner at row 21, column 0, and the Metamorph at X 48, height 80 (reset_run). When it passes an edge of the view the game draws the next screen ($253E), and a tile in column 254 or beyond is the finish (check_walls). The energy left at the finish comes off the time, a second for every eight (count_bonus).

The pills come from one of two lists of sixteen, picked at random for each run (pill_sets). The two lists are the same, byte for byte, so every run has its pills in the same places: the ones marked above. A pill taken adds 255 to the energy, a quarter of the full $3FF (take_pill).

02 · The tiles

Sixty-four tiles of four by four characters

The course is built from 64 tiles, each a block of sixteen characters. The characters are multicolour where their colour says so, sharing three colours: light blue, brown, and green.

The tiles at $8100, sixteen character codes each; the characters from $8500, which marathon_main copies to $5000; each character's colour from $8000, where 8 or more makes it multicolour. The three shared colours are at $7FFC to $7FFE, which band_course sets at line $71. The number under each tile is how many times the map uses it. Seven are never used, among them tiles 46 and 47, which spell GALACTIC GAMES in the course's own characters.