← All spotlightsPrograms / Features

Spotlight › Tank Attack

Tank Attack

An exclusive-display wireframe game used to exercise the full-screen rendering path.

Tank Attack
Tank Attack in play, filling the whole screen. A blue horizon line runs across the middle with low hills on it, a white gunsight is centred, a magenta radar circle with a sweep arm sits above, the score reads HIGH 0 and PL 1 with four lives, and a cyan wireframe block stands to the right of the gunsight.
Tank Attack in play.
Geometry per frame
About 100 lines
Adapter paths
VGA / CGA / Hercules
Full-screen clears
0

01 / Game and display contract

Game and display contract

Tank Attack follows the wireframe tank-game model with obstacle collision, enemy fire, radar and saved scores. It is a native os8088 application, not an Atari arcade-machine emulator.

Arrows or WASD drive, Space fires and P pauses. The game enters an exclusive display bracket and restores the desktop on exit; there is no windowed play mode.

02 / Adapter paths

Adapter paths

VGA uses a 320x240 indexed surface, CGA a 320x200 four-colour surface, and the selected Hercules path a smaller monochrome view. Projection accounts for output aspect ratio. These choices describe this renderer, not every mode each adapter can support.

Tank Attack
The Tank Attack title screen inside a window on the os8088 desktop. The words TANK ATTACK are drawn in cyan outlined letters, a green HIGH SCORES table lists four entries, white text reads ARROWS OR A D W S DRIVE, SPACE FIRES, P PAUSES, ESC OR F LEAVES THE GAME, and magenta text reads PRESS F TO PLAY.
Wireframe title drawing.
Tank Attack
Tank Attack after turning: the hills along the horizon have moved to different positions, the radar sweep has rotated, and the obstacle now sits further right. One life remains.
Projected scene and radar after turning.

03 / Erase and present

Erase and present

The renderer records the spans touched by the previous frame and erases those spans rather than clearing the entire surface. VGA uses a hidden VRAM page; the implemented single-page paths compose in system memory before submission.

The recorded flicker test compares each captured frame against its immediate neighbours to detect transient line loss, rather than scoring darkness against an unrelated scene average. Forty-frame captures on the tested monochrome paths showed no such dip. This is a regression test for that presentation path, not a guarantee for arbitrary hardware.

04 / Run Tank Attack

Run Tank Attack

Launch TANK.O88 from the software set. Exit returns through the system's full-screen API so display and timer state can be restored.

qemu-system-i386 -drive file=os8088.img,format=raw,if=floppy -boot a \
  -drive file=apps.img,format=raw,if=floppy,index=1 \
  -chardev msmouse,id=m0 -serial chardev:m0