1984 · Datasoft

Bruce Lee

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/bruce-lee with me to Gold.

Take the lanterns, open the passages, and keep away from the Ninja and Yamo. The numbers behind each part of that come straight from the game’s tables.

The goal

Lanterns open the fortress

Every room keeps a list of its lanterns, four bytes each: whether it still hangs, its character, its column, and its row (item_lists, $4D0C, through item_pointers, $4CE2). Walking into one takes it for 125 points (collect_lantern, $2F04).

Each room also has a routine that runs every pass (room_frame_table, $4EC4). It watches the room’s lanterns, or the lanterns of other rooms, and when the right ones are gone it draws a passage open. In room 0, for example, taking the room’s six lanterns sets a door flashing (room_0, $3642); room 1’s gate opens only when rooms 0, 1, and 2 are all empty of lanterns (room_1, $3679). The Maps tab shows which exits each room opens.

The count of lanterns left in every room is part of each player’s state ($2A-$3D), so in a two-player game each player has a fortress of their own.

The enemies

The Ninja and Yamo keep coming back

Yamo is actor 1 and the Ninja actor 2 (spawn_yamo, $0CD5; spawn_ninja, $0DF8). Each waits a time set per room before he comes in ($131F and $135B), and eight rooms have no enemies at all: 3, 8, 9, 11, 13, 17, 18, and 19 (room_no_enemies, $4C9E).

Blows come off a health count (apply_hits, $2B4E). An actor is beaten when it goes below zero.

BlowHealth it costs
an enemy’s strike2
a punch3
landing on someone’s head5
a flying kick7

The Ninja starts with at most 7, so two kicks beat him; Yamo starts with at most 20, so it takes three. Bruce starts each fall with 36 (lose_fall, $1818). A blow lands only when the two sprites touch and the target is at least a set distance in front of the attacker: 6 pixels for a punch or a kick, 4 for an enemy’s strike (check_collisions, $29C3).

Lingering makes them come sooner. Once Bruce has been in a room for $19 x 256 frames, about two minutes, an enemy’s wait is halved when he next sets off, and after $20 x 256 frames, about two and three-quarter minutes, it is cut to 3. In the second loop, after the treasure room, every wait is cut to 3 from the start (set_yamo_wait, $0D46, and the room clock test at $10D0).

Scoring

The points table

ForPointsWhere
landing on an enemy50$2B4E
a kick that lands75$2B4E
a punch that lands100$2B4E
a lantern125$2F04
beating the Ninja200$2B4E
beating Yamo450$2B4E
dropping through each of three heights in room 13, three times a player500room_13, $3E7C
entering a room for the first time2,000$0A0E
beating the Wizard3,000room_18, $3CDC

Falls

Four falls, and more to earn

A game starts with four falls, or nine when a person plays Yamo (new_game, $0F72). Losing the last one ends the game (lose_fall, $1818).

The first extra fall is due at 40,000 points and the next every 30,000 after ($438B, $438E), though the check that gives them has a flaw explained on the Discoveries tab. Room 16 has a fall of its own to take, a spot that adds one when Bruce stands on it (bonus_fall, $2FD6).

Traps

Mines, moving walls, and deadly cells

Some screen characters kill whoever touches them: characters $0F, $40, $54-$5A, $64, and $71-$7C (tile_action, $2E89). They remove an enemy the same way, everywhere except the Wizard’s room (deadly_tile, $304B). Mines explode in a short animation (animate_mines, $3228), sections of wall slide back and forth, and a moving hazard is redrawn a pattern at a time in characters $61-$63 (animate_hazard, $2C70). In the Wizard’s room, his fireballs kill Bruce on contact (room_18, $3CDC).

Two players

Taking turns, or playing Yamo

Two players can take turns as Bruce, swapping after each fall with their own score, falls, and lanterns (lose_fall, $1818). A second player can instead play Yamo, with a joystick of their own, against the first player’s Bruce. A human Yamo who leaves the stick alone for 7 x 256 frames, about 36 seconds, is handed back to the computer, and both players lose five falls for it (yamo_idle, $173F).