1987 · Imagine

Arkanoid: the rounds

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

The nine kinds of brick, what each is worth and how silver counts its hits; all 32 walls, drawn from their 160 bytes each at $8000-$93FF; and round 33, Doh.

01 · The bricks

Seven colours, silver and gold

Every wall is built from nine kinds of brick. Seven colours break at the first hit, each worth its own points; silver takes two to five hits, by round; gold never breaks.

BrickKindWall typePointsHitsIn rounds 1-32

Each brick is drawn from its two characters in the game's character set, at $CC00, in the play screen's colours: a black background, grey and light blue as the two shared colours (play_screen_colours, $F719) and the brick's own colour from colour RAM. The wall type is the 4-bit number a round's map holds for the brick (draw_wall, $F40E); the last column counts the bricks of each kind over all 32 maps.

A coloured brick is wall type 1 to 7, and draw_wall gives its two characters, $80 and $81, colour RAM type + 8. The 8 tells the video chip to draw the character in multicolour, and the 1 to 7 is the colour of the brick's face: white, red, cyan, purple, green, blue or yellow. Type 0 would be a black brick worth nothing, and no round uses it. The points come from brick_points ($B2C4), looked up by the colour, not by the type, so they follow the brick's look: blue is the cheapest at 70, yellow the dearest at 130. They are the game's numbers, not the arcade's.

Silver and gold bricks are wall types 8 and up. Type AND 3 = 1 makes a silver brick, $85 $89, and anything else a gold one, $8D $91, both in colour RAM 9. Each gets an entry in three small tables, a flag at $0300, a hit counter at $0355 and its screen address at $03AA, so that a hit can find it again. On the Commodore 64 gold looks light blue and white, because its face is drawn in the second shared colour.

A silver brick, when it finally breaks, is worth 100 points in every round. The game reads the points by colour for every brick it breaks, and silver's colour RAM, 9, gives the same entry as white. A gold brick gives nothing: gold_brick_hit ($B010) redraws it, plays the metal sound and returns before the points.

Only coloured and silver bricks count towards the end of the round. draw_wall adds one to the bricks-left count ($0455) for each, and leaves gold out; the round ends when the count reaches 0. A capsule can fall from any brick that breaks, a silver one on its last hit included, but never from a gold one. Every brick the ball touches, gold too, adds 4 to the fraction that speeds the ball up (speed_up, $AF5F).

02 · Silver

A silver brick counts a hit when it stops shining

Hit a silver brick and a white shine runs across it. The game takes one off the brick's hit counter at the end of the shine, not at the hit, and a hit that arrives while the shine is still running starts the shine again without counting.

A port of the game's code for one silver brick: the shine of silver_shine ($AB55) and the hit of silver_brick_hit ($B073), stepped fifty times a second. test_bricks.js holds it to the game's own routines.

draw_wall sets a silver brick's counter to one more than the round's number at silver_hits_by_round ($F52A): 2 in rounds 1 to 8, 3 in 9 to 16, 4 in 17 to 24 and 5 in 25 to 32. It also starts every silver and gold brick shining as the round is drawn, and that first shine takes one off, so a brick in round 1 begins the round at 1.

The shine is four characters a side. On every fourth frame ($0225 counts them) silver_shine moves each shining brick on by one character: the left half from $85 down to $82, the right from $89 down to $86. When the right half reaches $86 the shine is over and the counter goes down by one. That takes three steps, 9 to 12 frames after the hit depending on where the four-frame count stood.

A hit looks at the counter first ($B09E). At 0 the brick breaks like a coloured one. Otherwise the brick is drawn back as $85 $89 and set shining again, and the counter waits for that shine to end. So two hits less than 9 frames apart count as one, and a brick hit every 8 frames or sooner never breaks. With the game's code run on the kit's 6502, eight hits 4 frames apart left a round-1 silver brick standing, where two hits 12 frames apart broke it. Hits that close need a ball back at the brick within a sixth of a second, as a ball bouncing in a narrow gap beside it, or a second ball after the D capsule, might manage; whether it happens in play was not tried.

Gold bricks shine through $8D to $8A and $91 to $8E by the same routine. Their counter is set to $80, which silver_shine never takes one from, and gold_brick_hit never looks at it.

03 · Rounds 1-32

Every wall

Each picture is drawn from the round's bytes with a port of the game's wall routine (draw_wall, $F40E, and draw_playfield_background, $F552): the tile set and colour of the round, the brick characters, and the shading each brick casts below and to its right. The numbers under each give the bricks to clear and the hits a silver brick takes in that round.

04 · Round 33

Doh

Round 33: Doh

Round 33 has no brick map. It copies a screen of Doh's characters from $7B90 and swaps in its own character set (doh_setup, $9C59).