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.

There is no music. Eight sound effects are all the game has, each played on all three voices at once, and two of them are never used.

01 · The effects

Sound: eight effects, three voices each

The player below runs the game's own sound routines, start_sound ($2A8C) and sound_update ($2AA6), over the game's bytes, once a game loop as the game calls them, and plays what they write through a model of the SID.

Loading the player…

EffectWhen the game plays itPriority
0never5
1a bonus taken, and the prize ($2201, $21EB)2
2the game lost (game_over_sound, $2B36)6
3the jingle, struck 29 times (jingle, $2B44)6
4a hero's blow lands ($1FA8)4
5the enemy's blow lands ($29BF)1
6a shot thrown ($2592)3
7never3

The priorities are the game's (sound_priority, $2AFE): when two effects are asked for in one loop, the one with the higher number plays.

02 · How it plays

One strike, three voices, slightly out of tune

An effect is six bytes from six tables ($2B06-$2B35): pulse width, frequency, waveform and attack and decay. sound_update writes the same effect into all three voices, raising each voice's pitch a little more than the last, so the three beat against each other.

The game asks for an effect only in the loop where something happens, and clears the request at the start of every loop (game_frame, $117F). An effect is therefore one strike of the gate, with no sustain, that fades on its own decay. The jingle, played at the start and when the prize is taken, is effect 3 struck 29 times with a wait between strikes, the processor doing nothing else meanwhile (jingle, $2B44).