1985 · Mastertronic

Hunter Patrol

This minisite awaits a maintainer’s check. A model this site has not proven yet worked on it (claude-sonnet-5-5), so a maintainer will measure its listing on one it has (how the check works).

Shooting aircraft counts towards the ground's tally, a strafing run costs no life, and the flak can't touch the plane while it strafes.

01 · The ground defences

Four kinds of defence, one after another

The first half of a level is a count. The ground sends one kind of defence at a time, and the next kind comes when the plane has made enough hits on the first.

The kinds come in a fixed order: tanks, then lorries, then guns, then buildings, the four rows on the Graphics tab. The kind is kept in $41, and spawn_ground ($1670) starts a new object of that kind in a free record when a random number from the sound chip's noise voice has its low seven bits clear, about one pass in 128. An object appears on the horizon and comes down the screen towards the plane, growing and speeding up through twelve templates, and slides sideways as the plane turns.

The hits needed for a kind are kept in $42, and set_hits_needed ($0F60) sets them by the level: 5 on the first, 10 on the second, and 20 on the third and the fourth. A hit on a ground object scores 100 points, and a hit on an enemy aircraft scores 50; both count towards the kind on the ground (hits_play, $22D0). When the count reaches zero, draw_distance_bar ($29E0) moves on to the next kind. The bar along the bottom of the screen shows the progress: each kind has a section of it, filled as the hits are made.

02 · The air

Enemy aircraft, flak, and three ways to crash

The sky has its own enemies, and only some of them can be shot.

Enemy aircraft appear near the plane and fly away from it, shrinking as they go, weaving left and right and now and then changing between climbing and diving (spawn_aircraft, $1A10; move_aircraft, $1AD9). There are four aircraft records, as there are four ground records, because each band of the screen has four sprites for enemies (how the bands work).

The flak is a single record ($8880). spawn_flak ($2680) starts it from the horizon at a random place, climbing towards the plane, with a random burst time. When the time comes the dot bursts in three steps (move_flak, $2700). The shot cannot hit the flak.

The plane crashes in three ways: touching the flak, touching a near enemy aircraft (hits_sky_crash, $0F00), or flying low enough that its shadow touches a ground object. A crash sets $3F to 1, and plane_crash ($2400) counts it up every other pass through ten explosion pictures, from a fireball to a ring that breaks up; at $A0 a life goes, the ground is cleared and play starts again. The game begins with four lives.

03 · The target

A strafing run for every plane in reserve, and one more

After the fourth kind, the level ends at its target, a different one on each level and three sprites wide.

The screen reads PRESS FIRE TO CONTINUE above the plane, and the status line reads STRAFFING RUN AIRCRAFT NO.3
Before each run the plane waits, and the status line names the aircraft: "STRAFFING RUN AIRCRAFT NO.3", with the game's own spelling. Fire, released and pressed again, starts the run.

strafing_runs ($2A4C) copies the lives into $43 and gives one run for each number from there down to 0, so four lives in reserve buy five runs. A run costs no life: only a crash does, and a crash ends the run. The flak cannot cause one here: the run's collision test looks for sprite 7 where the flak is sprite 2 (Discoveries), so only the target, met low, brings the plane down. start_run ($2B00) clears the sky and the ground, copies the level's target into the sprite shapes, and sends the three parts down the screen like a ground object. Each hit on any part counts one in $45 and scores 100 points (hits_strafing, $2CD0), and the count shows as HIT on the status line.

A long white building crosses the screen under the plane
The first level's target, a long white building, during a run.

The four levels' targets at their nearest size, three sprites side by side, drawn from the game's bytes ($3000, $3800, $9800, $9000). The Levels tab compares the levels.

When the runs are over, run_result ($2E30) picks a message by the hits:

HitsMessageResult
64 or more"WELL DONE - TARGET DESTROYED"an extra life and the next level
48 to 63"TARGET SUSTAINED HEAVY DAMAGE"an extra life and the next level
16 to 47"TARGET PARTIALLY DAMAGED"an extra life and the next level
under 16"TARTARGET UNDAMAGED-TRY AGAIN"the same level again

The thresholds are $40, $30 and $10 in the code ($2E41), and the messages are chosen through the pointers at $8B90. The extra life stops at 9 lives. "TARTARGET" is the game's own slip (Discoveries).

04 · The levels

Four levels, then round again

Each level asks for more hits on each kind of defence (5, 10, 20, and 20) and ends at a different target; after the fourth, play goes back to the first. The Levels tab sets the four side by side.