1987 · Electric Dreams Software

Big Trouble in Little China

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/big-trouble-in-little-china with me to Gold.

Win the game and it tells you GAME OVER. Let an enemy past and it takes its points with it.

01 · The ending

Secret: winning says GAME OVER

The game has no ending screen. Taking the prize after beating Lo Pan sets the game state to 4 ($21DB), and the main loop answers that with the same routine it uses when all three heroes are dead: draw_game_over ($28FB) paints GAME OVER into the street ($11C6).

The prize standing in the street between the heroes and an enemy
The prize, put in the street by hand for this test.
GAME OVER painted across the street, with 300 points on the score
A moment after Jack walked into it: GAME OVER, and the prize's 300 points on the score.

The only difference between winning and losing is the sound: a win plays the jingle ($2B44), a loss one effect ($2B36). Both then start a new game, which waits on the title for fire. For these pictures the prize was placed beside the hero by setting its object's bytes, rather than by playing to the temple; the code that runs when it is taken is the game's own.

02 · Points

Secret: an enemy that gets past takes its points back

The score routine can subtract as well as add. When an enemy walks off the right of the screen, behind the heroes, the game rewrites three instructions of add_points ($2633) and takes the enemy's points off the score (score_lost, $1C0A).

The patch turns CLC, ADC and BCS into SEC, SBC and BCC, at $2650, $2656 and $2662. An enemy beaten in the normal way writes them back ($1BE6). If the subtraction would take the score below zero, the branch copies back the score saved before it (score_copy, $2672), so the score never goes negative. A man in a hat who slips past costs 2,000 points.

This comes from reading the code; it was not seen in play.

03 · Energy

Secret: the heroes tire even when standing still

Energy is also a clock. Every 512 game loops, about 50 seconds, each hero loses a point, whether he is fighting, walking or waiting (tick_energy, $23F6).

A hero has 41 points, so even a player who is never hit has about 35 minutes before the first hero falls, and all three run down together. The timer steps 202 times in 20 seconds with nobody touching the controls. The food bonus, every 1,500 points, is the only way to fill a bar again.

04 · Port 1

Secret: a second joystick pauses the game

The game is played on port 2, but the fire button on port 1 pauses it: press once to stop, again to go on (pause, $11E0). The energy timers and the street stand still until the second press.

A player with one joystick in port 2 never meets this, and the title itself waits for fire on port 1 (wait_fire, $11EB), so the first thing such a player sees is a game that will not start. The Controls page has the details.

05 · Left over

Secret: sounds, an army of Lo Pans, and points nobody earns

Some data in the game is never used.