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.

The game is played with a joystick in port 2, but it starts and pauses with the fire button of a joystick in port 1.

01 · The joystick

Sixteen moves from one stick

The stick in port 2 is read once a game loop (read_stick, $1AE4) and turned into a move code from a table (stick_codes, $1AC4). Left and right walk; every other direction, and every direction with fire, is a move of the active hero.

StickCodeWith fire
Left19
Up and left210
Up311
Up and right412
Right513
Down and right614
Down715
Down and left816
Fire alone0

Fire on its own does nothing: it gives code 0, the same as a stick at rest ($13F8). Each code starts its own script of frames in the hero's table of moves (move_scripts, $1812), which is why the three heroes fight differently with the same stick. The weapon moves are fire with left, up and left, or down and left, towards the enemies, who come from the left; Jack and Wang Chi can make them only with their weapon (hero_special, $201E). Holding down keeps a hero crouched (script_end, $17D9).

While the heroes regroup, as an enemy comes and after it goes, the stick is not read at all.

02 · The keyboard

Keys to choose a hero, and keys to play without a stick

With the stick at rest, the game reads the keyboard instead (read_keys, $1B0D).

KeyWhat it does
Bmakes Jack Burton the active hero
Cmakes Wang Chi the active hero
Smakes Egg Shen the active hero
RETURNpasses to the next living hero
Y, H, I, Oup, down, left and right, as the stick
Pfire

The hero keys are Burton, Chi and Shen's initials, B, C and S. A dead hero's key does nothing (switch_hero, $1469).

03 · Port 1

Fire on the other joystick pauses the game

The title waits for fire on a joystick in port 1 (wait_fire, $11EB), not the port the game is played with. During play the same button pauses: press it and the game stops until it is pressed again (pause, $11E0).

The game tests port 1 by selecting keyboard column 0 and reading bit 4 of $DC01, which is where port 1's fire button appears ($11F6). A press stops the energy timers and the street, and a second press starts them again.