1987 · Activision

Galactic Games: discoveries

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.

A pause key nobody was told about, keys the manual swaps, a draw that is not a draw, records that lose their minutes, and an earlier Psychic Judo hidden in four of the files.

01 · Space Hockey

Secret: a pause key

Space Hockey is the only event that can be paused, and the manual does not say so. A band of the screen's interrupt, at line $B1, reads the Commodore key in every match; each new press stops play with "GAME PAUSED" or starts it again with "GAME RESTORED" (band_pause). The other events have no pause at all.

02 · Every event

Bug: the manual's keys for left and right are the wrong way round

The instructions, written for the Spectrum, Amstrad, and Commodore 64 together, give the second player's keys on the C64 as @ up, : down, K left and H right. Every event reads them the other way: H sits in bit 2 of its control byte, which is left, and K in bit 3, which is right ($35DE, $2468, $3F0C, $2BB3). On the keyboard H is to the left of K, so the game's choice is the natural one. The manual also calls these "Player 2 keys", but any player can take the keyboard by pressing its fire key, the up arrow, at the prompt (Controls).

03 · Every event

Secret: a quit prompt that never appears

The manual says the QUIT key offers a choice between playing the event again and going back to the menu. In the game, RUN/STOP goes straight back to the menu ($30A8, $2DE7, $6D36, $34DB). The prompt was written: all five events carry the message "STOP TO QUIT ANY KEY TO CONTINUE" ($2840, $2DC1, $3CE3, $2B8E, $3045), but none of them ever prints it. In Head Throwing the message's address even follows the message table as a thirteenth entry, though the event only ever asks for messages 0 to 11 ($2A1E). The resident has a stray line of its own, "PRESS A KEY TO RESTART", which nothing prints either (restart_text).

04 · Head Throwing

Bug: a draw when player one has thrown further

Any win by player one of less than a metre is announced as "THE CONTEST IS A DRAW". At the end of the contest the game subtracts player two's best throw from player one's, centimetres first, then metres ($1EBC). A borrow rightly means player two threw further. The draw should need a difference of zero, but the test looks only at the metres of the difference, and those are zero for every lead under a metre. Player two's narrow wins are called correctly, because they borrow.

Player onePlayer twoThe game says
12.50 m12.50 ma draw (right)
12.80 m12.50 ma draw (wrong: player one won)
12.50 m12.80 mplayer two wins (right)
13.10 m12.80 ma draw (wrong: player one won)
14.10 m12.80 mplayer one wins (right)

05 · Metamorph Marathon

Bug: player two's best time can be lost

The Marathon's two players take turns, and the event keeps a best time for each, handing both to the records when it quits (quit). A time is two bytes of decimal digits, minutes and seconds, and $9999 means none. Player one's time is held back only when both bytes are $99, which is right ($745F). Player two's test was copied with two slips, a different number and the opposite branch, and holds back the time whenever its two bytes are equal and are not $FF ($746F). "None" is still held back, but so is every real time whose minutes match its seconds: a best time of 7:07 or 11:11 for player two never reaches the records.

06 · Records

Bug: Psychic Judo's record never copies its minutes, and never needs to

Psychic Judo's record is the fastest match won: the times of the three rounds the winner won, added together, in minutes, seconds, and hundredths ($1DE5). The resident keeps a new record by copying two bytes for every event, so Judo's minutes are left behind ($D77D). The slip can never show. The disk as sold holds 59.78 seconds for Judo ($BC70), every new record has to beat it, and so its minutes are always 0, the value already there.

07 · The resident

Bug: a volume clear that reads a register you cannot read

Before the records screen the resident tries to silence the sound while keeping the filter settings, by reading the sound chip's volume register, keeping its top four bits, and writing it back ($B86C). Two things go wrong. $D418 can only be written: reading it gives whatever was last on the data bus, not the volume. And the AND takes its mask from the byte at address $F0 rather than the number $F0, a missing #. What reaches the volume register is whatever the data bus last held, masked by whatever the zero page holds at $F0. The records screen plays no sound, so nobody hears the difference.

08 · Title screens

Bug: stars in the wrong place

The title screens scatter 80 stars over a bitmap. To turn a star's Y into an address, place_stars means to add the Y's low three bits, the line within a character cell, but it drops the result of the AND and adds the whole Y. Each star lands Y / 8 cells to the right of where it was meant to be, and near the bottom some fall off the bitmap into the memory after it. Nobody watching a field of random stars could tell.

09 · Metamorph Marathon

Secret: a random choice between two identical lists

At the start of each run reset_run picks one of two lists of sixteen power pills at random and copies it. The two lists are the same, byte for byte (pill_sets), so the pills are always in the same places, the ones on the Maps tab.

The course's tiles hold another leftover: tiles 46 and 47 spell GALACTIC GAMES in the course's characters, and the map never uses them (Maps).

10 · The disk

Secret: an earlier Psychic Judo in four other files

The event files were built by saving whole stretches of memory, and they carry whatever was in memory at the time. 100m Slither and Space Hockey hold the same bytes from $3718 on: a build of Psychic Judo, whose long stretches match Psychic Judo's own file twelve bytes higher, so it is an earlier version of that event ($3718 in Space Hockey). Head Throwing has the same leftover from $35D5, and the menu has its interrupt code from $2564. Space Hockey also carries 100m Slither's program from $3020 up to the leftover Judo, Psychic Judo and Head Throwing carry Space Hockey's player shapes at $4400, and Head Throwing carries Psychic Judo's bolts at $5800. None of it runs.

Some of what was left in was used while the game was being made. Head Throwing has a test loop that spins the head through all 32 angles with its ears flapping, for ever (head_spin); the Marathon has a routine that prints a number in hexadecimal on the screen (debug_hex); and the resident keeps an earlier build of the title screens' letters and code above $E800. Nothing calls any of them.

11 · Title screens

Secret: the U lives in the font

The title letters are sprite shapes 1 to 20 in video bank 3, from $C040. Psychic Judo's title needs a U, which none of them is, and uses shape 0 at $C000: the 64 bytes just below the letters, which are also the last characters of the records screen's font. Those bytes draw a U. The sixth title, shown only after a Galactic Championship, reads THE END (Graphics).