1983 · Virgin Games

Falcon Patrol

This minisite was contributed by 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/falcon-patrol with me to Gold.

Eight sprites carry everything that flies: the player's jet, four enemy jets, two bombs and a puff of smoke. The jet turns by stepping through seven frames, and at full speed the game copies one of ten more into the end of that row as it climbs and dives.

01 · Everything that moves

Every sprite, at the game's thirty ticks a second

The game moves on a timer, not the screen: about 30 ticks a second. Here each shape steps as the game's own code steps it, in the colours the game gives it, over the sky's light blue.

Drawn from the sprite blocks in the listing ($2000-$27FF, blocks $80-$9F) and the bank at $2B00, in the colours of the sprite register image at $4310: the player blue, the enemies red, the bombs black. A wreck turns white and multicolour, and sprite 7, the smoke, is the one sprite that is multicolour from the start ($D01C = $80). The turns, the stick and the random frames are played here by a script, since a page has no pilot.

The player's jet stays in the middle of the screen while the world moves round it, so the jet's whole repertoire is about facing. Frames $80 to $86 run from nose-left through head-on to nose-right, and animate_bank_attitude ($5600) steps the sprite pointer one frame every fourth tick towards the way the jet is moving. At full speed, animate_player_bank ($5A20) copies one of five pictures from the bank at $2B00 over the end frame, $80 or $86, a picture every eighth tick, so the side view rolls its wings as the jet climbs or dives. The bank is never pointed at; its frames reach the screen only by being copied.

An enemy jet has the same idea in five frames a side: enemy_update_slot ($4340) moves its pointer one step every eighth tick, towards level flight at $96 or $9B or away from it as its manoeuvre wants. Shot down, it turns white and multicolour and shows one of the first four debris frames, chosen afresh every tick from the sound chip's noise ($43BC). The player's own wreck falls with smoke over it, then flickers through all eight debris frames the same way and thins out to nothing (crash_sequence, $5690).

The video chip looks at the bottom 16K of memory ($DD00 = $C7): the screen at $0400, the 256 characters at $3000 ($D018 = $1C), and these sprite blocks between them. The scenery, the radar and the panel are all characters, in three bands of colour that a raster interrupt sets three times a frame; the How it works tab draws the screen and every character. The player's missiles are characters too, glyphs $12 and $13, which is why hitting anything with them depends on the video chip's sprite-to-background collision rather than on two sprites meeting.

Block $87 is a scatter of dots like the debris frames, but the game never points a sprite at it: the turn stops at $86 and the debris starts at $88. Block $9F holds a single stray byte. Block $90, the first of the smoke's four, is blank, and the game also uses it as a signal: the player's life ends once the wreck's pointer has counted up to it ($5640).