1982 · Commodore

Radar Rat Race

This minisite was curated by air.

Everything in the maze is a letter of the game's own font, stamped two characters wide and two tall. Here is each one, moving as the game moves it.

01 · Four frames of animation

Turn the rat

The entire animation budget for the player is four tiles. The game picks one based on the rat's committed direction, then stamps it. That's the whole renderer. There is no interpolation, no sprite multiplexing and no in-between frames. Press a direction.

Four routines in the code, one per direction, each differing only in which four font entries it reads. The rat steps half a cell at a time and can turn only when it is whole on a cell, every other step, so the middle button turns it at every cell: as fast as the game lets it turn.

02 · The red rats

The same rat in red, spinning when stunned

A red rat is the player's four tiles drawn in colour 2, picked by red_rat_facing ($42). It steps every sixth pass of the main loop, every fifth from round 8. When it lands on a star, a black cat or another red rat, red_rat_hit_test ($E2A4) stuns it: for 15 moves after a star or 7 after anything else it stays where it is, and move_all_red_rats ($E088) sets its facing to the low two bits of the countdown, so it spins anticlockwise. A red rat that turns back spends one move facing a quarter-turn short of its new way, so it turns round rather than flipping.

03 · Caught

EEEK takes the colour of whatever caught you

player_caught_sequence ($F2DE) redraws the red rats, then draw_eeek_text ($E8BC) stamps the EEEK tile over the rat without touching colour memory. Caught by a red rat, the cells under the rat were just painted red, so EEEK is red; caught by a cat, they are still the rat's blue. It stays for the 16-step squeak and 80 ticks more, about 1.6 seconds, before the screen is cleared for the next life.

04 · Around the maze

The rest of the cast

Cats never move, cheese never moves, and a star stays put for 50 of the rat's moves. Two things on the panel do change: the X2 beside NEXT MEAL flashes once the 2x cheese is eaten, and the TIME bar fills cell by cell.

Each piece of the maze is four consecutive font entries, stamped at screen offsets 0, 1, 40, 41: the 40 is one screen row. The 2x cheese is an ordinary cheese whose bottom-right cell draw_2x_marker ($E704) overwrites with a small red 2x.

05 · The radar

The only sprites in the game

The radar panel is black character cells. A cheese is a blip: a solid cell with a four-pixel hole in the corner its position falls in, one of four glyphs. The rat and the red rats are hardware sprites, a 4×4 square and a 4×4 cross, the game's only sprites.