1987 · Activision

Galactic Games: how the events work

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.

Five events, each a program of its own loaded from disk, and a menu that strings them together into a championship. This page takes them in the order the menu lists them and shows the rules each one's code keeps.

02 · 100m Slither

Bunch, stretch, and keep the slime flowing

The race: two worms on two cyan lanes below a crowd, with the clock at 01:00 and each worm's temperature and slime meters at the top
Two worms, two lanes, each scrolling on its own ($15DA, $16DC). The meters show each worm's temperature and slime.

A worm moves like a real one. DOWN bunches it up, which adds 2 to its speed, up to 8 (st_wait_down); UP stretches it out and it slides forward. The rhythm matters because waiting costs speed: while the worm waits for its next press, the game takes 1 off its speed once in every press window (press_up, press_down).

Holding RIGHT as the worm stretches makes a super-slither: speed 16, twice the normal top speed, for 12 units of slime (st_bunched). Slime is the worm's coolant as well as its fuel. FIRE squirts 2 units of it and cools the worm by 4 ($32FF), and one unit comes back every 200 frames, four seconds (worm_state). A worm whose cooling runs out bursts into flames and is out of the race (st_burnt).

The clock counts hundredths, 2 a frame. At 70 seconds any worm still racing is put out, with "TIME LIMIT EXCEEDED RACE TERMINATED" (race_check). Playing alone, worm one in the far lane is the computer's pace-maker, which plays back a script of controls and how long to hold them ($3674).

Every move the worm makes is one of eleven animations: watch them on the Graphics tab.

03 · Space Hockey

Black holes for goals, and a puck that does not want to go in

Space Hockey: two coloured spheres either side of a white puck on a chequered floor, with a scanner and the clock above
The field scrolls with the puck. The scanner at the top shows the puck, both players and the view's window (place_dots).

Two spheres push a living puck around a field with a black hole at each end. Each hole pulls whatever is near it, through a grid of 16 by 8 pull values over the field ($1B15). The puck feels the same pull the other way: it is pushed away from the holes, so it has to be knocked in. After a hit it is dazed for a moment, and only then does the pull draw it in; each daze lasts 4 frames longer than the last, up to 150 ($219F).

What happensPoints
The puck falls into the right-hand hole3 to player one
The puck falls into the left-hand hole3 to player two
A player falls into either hole1 to the other player

From $0D91.

The players bounce off each other and off the puck. FIRE is a brake: for five frames it stops the bounce after a hit (read_controls). A match is four rounds of 60 seconds, and level scores after the fourth give an overtime round ($0CC1). The computer decides its move every 13 frames ($1EC1). Before the first match after loading, the computer plays player one, and when a match ends the event plays a demo until fire is pressed ($0C93). The Commodore key pauses the game, which the manual does not mention (Discoveries).

04 · Psychic Judo

Bolts of energy, shields over six zones

Each half of the screen is one player's view down the arena towards the other. Holding FIRE charges a bolt from the reserve; releasing it throws the bolt, and the stick steers it. At the far end the bolt either misses, strikes a shield, or hits.

Pick the opponent's shield, then click a cell to throw a bolt at it.

The body is the 16 x 16 cells of body_map, each cell's zone from body_zones, numbered here 1 and 2 for the top left and right, 3 and 4 for the middle, 5 and 6 for the bottom; the unnumbered middle column counts for both sides. The shields are shield_zones, one for each stick position in shield_dirs. A bolt is tested only when it reaches the far end, at its across and height divided by four (judge_bolt1, body_test). Shielded cells are drawn with a cross.

Charging takes 1 from the reserve every 5 frames, up to 12 (timers). A bolt that meets a shield is caught: the catcher's reserve gains its energy, at most 47. Shields are not free: every 25 frames a raised shield costs 1 from the reserve for each zone it covers, and drops when the reserve runs out ($3567), so a two-zone shield costs twice as much as a one-zone one. A bolt that finds an open zone is a hit, and the player hit loses one and a half times its energy. A round lasts 60 seconds, or until a reserve runs out ($1DE5, $1DB8); a round that runs out of time is played again, and the match is best of five ($1D2A). The computer player is a machine of six states, which aims for the zones the opponent leaves open and raises a shield on the side a bolt is coming ($6900).

06 · Metamorph Marathon

One creature, four ways to get past an obstacle

The Marathon: the yellow Metamorph as a blob on brown earth under a light blue sky, with the energy bars, clock and form icon in the panel above
The Metamorph at the start. Above the course: the power and progress bars, four red energy bars, the clock, and an icon of the four forms.

The Marathon is a race against the clock, over a course 256 tiles long. The Metamorph rests as a blob, and the stick changes it: RIGHT to the Runner, LEFT to the Burrower, DOWN to the Jumper, UP to the Flyer (pick_runner, pick_burrower, pick_jumper, pick_flyer). FIRE turns it back into the blob, and every change of form goes through the blob (to_blob). The Runner covers level ground, the Burrower digs through any rock without the "too hard" mark on the map, the Jumper springs and is the one form that lands safely from a height (check_walls), and the Flyer climbs while UP keeps its power building.

Two players can take turns at the course: player one runs, then "PLAYER TWO PRESS FIRE TO START" asks for player two, and if nobody answers the turn goes back to player one (marathon_main, $2EA4). The event keeps a best time for each (best_times).

Energy is a 16-bit count, 1,023 when full, shown as four bars of 256 ($1F1F). It drains every 20 frames while the run goes on, a fall of 24 or more costs some, and each of the sixteen power pills adds 255 (take_pill). When it runs out, the Metamorph falls apart and the run is over. At the finish, the energy left comes off the time, a second for every eight units (count_bonus).

07 · Records and the championship

Five events in a row, and a champion's name on the disk

After every event the resident code checks the two players' results against that event's record ($D005): the lower time wins in 100m Slither, Psychic Judo, and the Marathon, the higher score in Space Hockey and Head Throwing. A new record is kept, and the menu saves the file RECO to side 1 of the disk ($08FE). The disk as it came holds 35.45 seconds for Slither, 21 points for Hockey, 59.78 seconds for Judo, 65.93 metres for Head Throwing, and 7 minutes 2 seconds for the Marathon ($BC64).

The menu's last line, the Galactic Championship, sets a flag ($B800) and loads the five events one after another; each keeps its results for the end. After the Marathon the resident shows the records, then turns every result into points with a routine that lives in the Marathon's file (score_events), prints both players' totals, and compares them with the Galactic Champion's record. The disk's champion is RIVA, with 1,000 points (champ_record). A player who beats that types a name of up to eight letters, RETURN to finish and the left-arrow key to rub out ($D619). The championship then ends with a sixth title screen, which reads THE END (Graphics).