Spotlight › Tank Attack
Tank Attack
An exclusive-display wireframe game used to exercise the full-screen rendering path.
- 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.
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