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.

Seven levels, each its own routine and its own way of drawing the screen, played in order four times over, faster each time and the last time at night.

01 · The seven levels

Each level is its own program

The scorecard sends the player to the level's own code by its number ($12A2): the Gauntlet at $6000, the Stairs at $6CF5, the Temple at $7600, the Vermin at $6595, Hopaztec at $7200, the Piranha at $7E98 and the Bridge at $7B00. Each sets up its own screen, sprites and controls, runs its own loop and ends at $1300, won or lost. The pictures are one frame of each in play, drawn here from the memory and registers that frame read.

Each frame is drawn from every write the game made to the video chip during it. On the Stairs a few pixels differ from the game's screen, where the game redraws the steps while the beam is drawing them.

02 · Four phases

One table of 16 bytes makes each phase harder

After the seventh level the phase goes up and the seven start again; after the fourth phase the game starts over from the spiral ($1390). Every level reads its difficulty from 16 bytes copied to zero page as it starts ($1256), from the phase's row of the table at $5C50. The two colours at the end are what turn phase 4 into night.

The table at $5C50-$5C8F, read from the listing. Delays and counts are in passes of each level's own loop, which runs as fast as its delay loops let it, not in frames.

03 · Hopaztec's floor

The trapped tiles are a list of numbers drawn from noise

Hopaztec's tiles are numbered by the moves between them: a hop forward adds 1 to the hopper's tile number, a hop back takes 1 away, a hop to either side adds or takes 9 ($732A). The start is tile 9 and the doorway tile 44 ($7320). The floor is 65 tiles in nine rows, drawn below from the game's own tables ($5BF8-$5C20): each row's left and right edge, where a hop sideways is refused, and the back and front rows, where a hop forward or back is.

At the start of an attempt the game fills a list at $5C28 with tile numbers read from voice 3's noise generator ($74C2): 10 in phase 1, up to 32 in phase 4. After each hop it looks for the tile in the list, and a match brings the spears ($1FE8). The list is made once an attempt, so it stays the same for all five lives and changes only after the fifth.

The room as recorded in play (the hopper on the start, tile 9), each tile's number where the hopper stands on it, and in red the tiles of one list. The arrows are the four hops the edges let through, off the floor (Discoveries). The map is worked out from the tables and the game's own four hop checks. The lists here use the page's own random numbers in place of the noise generator, with the game's test of what a list can hold (below 60, or 63 to 66). The game's own lists are less random than these: Discoveries shows them coming from one fixed sequence.