1983 · Cosmi

Aztec Challenge

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

A snake that is set up and never shown, a fire button that makes the swimmer bite-proof, and a bridge that pays for holding the stick the wrong way: what the code does that the manual never said.

01 · The Vermin

Bug: the Vermin's green snake is placed but never appears

The Vermin brings on six creatures, one for each of the low six bits of a random number ($6700). For each bit that is set, it checks whether that creature is already out, by the same bit of the byte $2A, and if not it marks it out and places it. Marking is an ORA of the creature's bit into $2A. For the fifth creature, bit 4, the value is #$00 where it should be #$10 ($6772). The creature is placed ($681A: sprite 6, shape $9C, a coiled snake, in green) but never marked, so the routine that would move it and switch its sprite on ($6A80) is never called. Each time bit 4 comes up again the snake is placed again, its sprite still switched off.

The six marking instructions, read from the listing's bytes. In 60 seconds of the Vermin, sprites 0-5 and 7 all came on, sprite 6 never, and bit 4 of $2A was never set. A second copy of the checks at $6860, which nothing calls, has the same #$00 ($68C7).

02 · The Piranha

Secret: holding fire with a direction keeps the swimmer safe from the piranhas

The manual warns that fire must be pressed with the stick centred, "or neither function will work". On the Piranha that is half true. The swimmer's controls ($1DE0) dive only for fire alone, and move only for a direction alone; fire with a direction does neither. The bite check ($1EA0) asks a different question: is the fire bit pressed at all? If so it empties the collision register and returns ($1E97), and no fish can bite. The drowning count only runs while diving ($7F9D), and fire with a direction is not a dive, so the swimmer never drowns either. It also never moves, so the lake is never crossed: it is a way to wait, not to win.

Stick held for 60 secondsBitesLives lost
Centred44
Fire alone (dive)118 (drowned about every 3 seconds)
Fire and up1, in the first moment1
Fire and left1, in the first moment1

The Piranha from a few seconds in, counting the calls of the eaten routine ($1F9D) and of the life-lost routine ($1BD2). The one bite with fire held came from the fish already closing in at the start; none came after.

03 · The Bridge

Secret: holding the stick right on the Bridge scores 10 points a pass

Every level counts "achievements" in one byte, $68, worth 10 points each when the attempt ends ($1456). The Bridge counts one on every pass of its loop in which the stick is held in any direction but fire alone ($7D4C), before it looks at which direction it is. Down, left and up then start a jump and the count stops; right and the diagonals start nothing, so the runner stays on the bridge and the count goes on. Held right for 10 seconds, it went from 0 to 72, 720 points. The count is one byte, so after 255 it starts again at 0: the most it can pay is 2,560 points (255 achievements and the 10 every attempt adds), and holding on too long loses them.

At the game's rate of 72 passes in 10 seconds, 7.2 a second, with the byte wrapping as INC $68 does. The points are added when the attempt ends, won or lost.

04 · The Piranha

Bug: a lost life on the Piranha throws away all the progress

The Piranha counts the swimmer's way up the lake by the passages off its top edge ($1AB8): each counts an achievement, and every second one raises the progress stage, which wins at stage 9. When a life is lost the level restarts through the music's reset ($1CA0), which also clears the stage. Other levels clear their progress too, but a crossing of the lake has to be done in one life, eighteen passages without a bite.

Swimming up: stage 0, then 1 at the second passage; a bite; stage 0 again. Repeated five times over two minutes, the stage never passed 1.

05 · The Temple

A falling spear can strike the runner's head and do no harm until it reaches the legs

The runner is two sprites, the upper half and the lower half (Graphics). The Temple's trap check ($79F0) reads the sprite collision register and keeps its two lowest bits, one for each half. Only the value 2, the lower half touching something while the upper half does not, catches the runner. A spear or a stone that strikes the head, or both halves at once, passes on, and the runner is caught only when it has fallen past the head onto the legs. Until then the runner can still run out from under it.

The falling spear's YTouchingCaught
180the headno
189the headno
198both halvesno
207both halvesno
216the legs aloneyes

The first room's spears, the stick held left so the runner stands still, each spear moved straight above the runner as it appeared, and the collision bits read at every pass of the check ($79F3) until the runner was caught ($7A08).

06 · Hopaztec

Secret: Hopaztec's trapped tiles come from one fixed sequence

The game picks its trapped tiles from voice 3's noise generator ($74C2), reading it after a fixed delay each time ($74EC). The noise generator is a shift register that runs on the clock, so read at the same intervals it gives the same numbers in the same order. Which part of that sequence a player gets depends only on how long the scorecard waited for fire: two attempts started at the same moment get the same traps, and an attempt started a little later gets the same list shifted on by a few numbers.

Twenty lists drawn in phase 1, each started a little over half a second later than the one before. Matching runs of numbers are marked in the same colour: list 2 is list 1 four numbers on, and lists 6 and 7, 10 and 11, 13 and 14 are the same list.

07 · Hopaztec

Bug: four hops take the hopper off the floor and into the walls

Hopaztec stops a hop at the floor's edges with tables ($5BE8-$5C20): a hop forward is refused on the back row, a hop back on the front row, and a hop sideways at each row's left and right edge. The floor is not a rectangle, though. Its right edge steps in three times on the way to the back, and its left edge steps out once from the front row, so at four tiles a hop forward or back lands on no tile at all: from tile 60, 66 or 72 forward, into the right-hand wall, and from tile 1 back, under the left border, where the hopper is almost out of sight. Out there the tile numbers go on (61, 67, 73 and 0), the hops go on, and so does the check for traps, which knows only numbers. The hopper can hop back onto the floor, and it can go on hopping round the outside of the room.

The four exits are on the Levels tab's map of the floor, worked out from the tables. With the traps switched off, the hopper hopped forward from tiles 60, 66 and 72 off the floor, came back from the first two, and, once off the floor, hopped right past the edge of the screen and came round again from the left as its X passed 511.

08 · Smaller things

Quirks in the controls, the traps and the night