1985 · Melbourne House

Way of the Exploding Fist

This minisite was contributed by chunkypixel. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/c64/way-of-the-exploding-fist with me to Gold.

Seven raster interrupts a frame, fighters built pose by pose from nine sprites, and the picture the cassette and the disk show while they load.

01 · The screen

Seven raster interrupts draw one frame

Two fighters need eighteen sprites and the machine has eight. The game draws the top row of both fighters with sprites 0-5, then moves those sprites down the screen as the beam passes.

One frame of a two-player bout, drawn from memory and the game's writes to the video chip with the site's renderer. The chain: $31F2 at line 0 sets up the frame, $2FB0 switches to the bitmap at line 90, the sprite handlers move sprites 0-5 down a row of 21 lines at a time, a handler on line 217 draws the shadow, and $30E5 at line 255 returns to text for the panel and plays the music.

The gap between the two fighters' heights decides which of seven interrupt chains runs that frame ($32CD). When one fighter is exactly 20 lines higher than the other, one fighter's second row and the other's third start a line apart, and a combined handler moves all six sprites at once ($2F02, $2F59). The routines that set this up ($3291-$3750) work by rewriting the handlers' own instructions: the raster line, the sprite heights and the pointers are all operands patched every frame.

A jumping fighter casts a shadow on the floor. It is a fourth row of sprites from a fixed set under the I/O chips ($D480), shown at a fixed height while the fighter is off the ground.

02 · The fighters

Every pose is built from nine pieces

A fighter is a three-by-three grid of multicolour sprites. The game never stores a whole pose. Each shape frame is nine cell numbers, and each cell is a 64-byte piece of a karateka.

There are 79 shape frames. The karateka use $00-$3A, and $3B-$4C are the bull of the bonus round, which uses the same tables but takes each byte as a sprite pointer instead of a cell ($5D = $40). Each move is listed with the stick position that makes it on the Controls tab.

Played by the game

Six more animations are ones the game plays on its own, numbered in the same series as the moves on the Controls tab: the bow both fighters make at the start of every exchange ($17, set by $1A22; the bout clock does not run during it, $1AC3), the winner's bow at the end of a bout, played by a loop of its own ($19, $1E32), the three falls the hit test gives the fighter it hits ($16, $1A, $1B, $2CA8), and the return from a held spinning kick, played backwards ($15, $2A5D). With the 21 moves they make up every fighter animation, $01-$1B; $1C-$1F are the bull, shown on the Discoveries tab. Click a card to see its steps below.

The animations

A move's animation is a list of steps. Each step holds one shape frame for a number of ticks and moves the fighter by a step in X and Y. Pick a move, or one of the animations the game plays itself, and the cards show every step of it, in order, as the animator plays it, and the table below them gives the same steps as the game stores them.

Each card is one step of the move's list at $7720: the shape frame, assembled the way the sprite builder ($3914) does it from the frame tables at $7AE0 and the cells at $8000 and checked against both fighters' sprites in a snapshot of play; how many ticks it is held; and the step in X and Y that the animator adds to the fighter's position on every one of those ticks, X along the fighter's facing ($3837). The line at the top totals the ticks and the distance travelled, in units of two pixels. The grid gives the nine cell numbers the frame is built from, top row first; 0 leaves that sprite blank, and the standing pose fills six of the nine. strike marks the frame a blow is tested on ($1204). Click a card to pick its row in the table, or a row to pick its card. Play runs the steps at one tick per PAL frame, the game's fastest pace: a tick is one pass of the fight loop, which waits for raster line 253 ($1A96), so a pass that runs long takes two frames. When its list ends a blow is held on its last frame and then played back in reverse, so the cards read right to left on the way back ($115D).

The cards show a fighter facing right. Facing left, the builder takes the columns in reverse and mirrors every byte through the table at $7E00 ($3BC5). Each fighter has two 576-byte buffers at $C040-$C93F and is rebuilt into the spare one whenever its frame changes, so a half-built pose is never on screen.

03 · The loading picture

The picture comes up with a shout

Melbourne House's 1985 cassette first shows two screens of text: one that says what the loader's border colours mean, and one that lists the game's keys. Then, 138 seconds in, it puts up its picture whole: MELBOURNE HOUSE PRESENTS over a pagoda, Mount Fuji, a gateway and a garden in blossom, with The way of the exploding fist across the foot. As the picture comes up, the loader stops for two seconds and plays a shout. Then the picture stays, in silence, for three minutes while the game loads.

The cassette's own bytes, drawn as the video chip draws them, with the border as the loader painted it in one frame.

The shout is played the way the game plays its own, by switching the volume on and off, and you can hear it on Music and speech.

The disk does the same once 1 is pressed at its menu: the picture and the shout are files of their own on it, M.PICTURE, M.TSOUND and M.SPCHTBL, byte for byte the bytes the cassette loads. The stripes are the cassette loader's. While the tape plays, it moves the border on to the next of the C64's sixteen colours again and again, faster than the screen is drawn, so the border fills with bands of every colour.