Appendices
Where the game's data lives, every important constant in one table, and what is still not known.
A. Where the data lives
| Data | Readable form | As the build uses it |
|---|---|---|
| 22 models (ships, aliens, mutant, pod, satellites, missiles, title logo, two unused; model_8b76 is the missiles satellite) | assets/models/*.model (text: scale, vertices, faces) | src/data/model_*.h |
| 3 pictures (logo face, logo extrusion, unused "Novell DOS 7") | assets/bitmaps/*.pbm (open in an image viewer) | src/data/bitmap_*.h |
| 8 × 8 font, 256 characters | assets/fonts/font8x8.txt | src/data/font8x8.inc |
| sine, cosine, square tables | formulas in chapter 3 | src/data/sintab.h, costab.h, sqtab.h |
| all texts (messages, menus, help) | src/msgtable.asm | |
| sound effect tables | src/sound.asm (chapter 10) | |
| alien kinds, pod places, star directions, explosion spark directions, colours, collision pushes | src/tables.c, src/globals.c | |
| multiplayer start corners | in code: src/players.c
(player_start) | |
B. Constants
World units, frames, and steps of 1/2048 turn, as in the document. "SP" single player, "MP" multiplayer.
| Topic | Constant | Value | Chapter |
|---|---|---|---|
| time | timer tick | 18.2 per second (54.925 ms) | 2 |
| SP frame rate | at most one frame per tick | 2 | |
| MP frame rate | display refresh (~70/s), paced by peers, wait ≤ 5 ticks | 2, 8 | |
| numbers | world unit | raw 64-bit value ÷ 65536 | 3 |
| Q14 | 16384 = 1.0 | 3 | |
| angles | 2048 steps per turn | 3 | |
| distance exponent | shrink while any m > 16384 or m < −16385; grow while all in [−8192, 8191]; cap 8 | 3 | |
| world | pods | 6, at ±1000 on the axes | 3, 7 |
| alien spawn distance | 16384, to the side | 7 | |
| MP start corners | square of side 2048 in x–z | 3 | |
| satellite spawn area | ±10000 per axis around the origin | 7 | |
| ship | throttle | steps of 8, up to 144, down to −112; extra thrust doubles | 4 |
| velocity correction | 0.5 / 1 / 2 / 4 / 8 (16 with extra thrust) per frame | 4 | |
| keyboard turn rate | +2 per frame up to 24 | 4 | |
| shields | 32 max | 6 | |
| collision | immunity 8 frames, tumble 48 frames at ±48, push 64 per frame | 4 | |
| respawn (MP) | 1024 along "up" | 4 | |
| contact ("touching") | every coordinate difference below about 256; satellites 128 | 6, 7 | |
| lasers | your shot | ship velocity + 1024, 24 frames, 8 slots, every 3rd frame | 6 |
| your hit box | ±512 along, ±192 sideways (±96 for small targets) | 6 | |
| alien shot | 1024, 24 frames, 8 slots | 6 | |
| alien hit slab | ±1024 right, ±256 along and up | 6 | |
| damage | 1 shield (2 powered, MP); aliens −1 hit point (−2 with fire power) | 6 | |
| missiles | yours | 16 at start, 4 in flight, 400 per frame, turn 128, accel 25, always kills | 6 |
| lock window | ±384 around the line of sight | 6 | |
| Pirate's | 400, turn 8, gives up beyond 16,384 | 6, 7 | |
| Commander's | 400, turn 32, accel 12.5, never gives up | 6, 7 | |
| aliens | Pirate | 2 hits, 125 (to 250), turn 24, 100 points | 7 |
| Fighter | 2 hits, 175, turn 24, 150 points | 7 | |
| Guardian | 4 hits, 275, turn 32, 200 points | 7 | |
| Commander / mutant | 8 hits, 225, turn 32, 400 points | 7 | |
| in flight at once | 4 (levels 1–13), then 5, 6, 7, 8 | 7 | |
| levels | budgets | Pirates 8; Fighters 2(n−1); Guardians 2(n−2); Commanders 2(n−4); each ≤ 8 | 7 |
| spawn / satellite period | every 64th / 128th frame | 7 | |
| bonus | pods × level × 1000, +8 shields | 7 | |
| score | points | aliens 100–400, missile 25, MP hit 50 | 6, 7 |
| wrap | above 1,000,000 subtract 1,000,000 | 7 | |
| network | universes, slots | 8, 4 (+ spectators) | 8 |
| state packet | 130 bytes of data per frame | 8 | |
| liveness | 4 frames; lobby "Free" after 32 lobby frames | 8 | |
| picture | screen | 640 × 350, 16 colours, pixels 1.37 × taller than wide | 9 |
| projection | 512 · x ÷ z, 384 · y ÷ z; view 64° × 49° | 9 | |
| view test | z > 512 camera units, |x| ≤ z, |2y| ≤ z | 9 | |
| stars | 256 (64 in Lines), within 43° | 9 | |
| sound | effects | 6, one tone per tick, 1,193,182 ÷ divisor Hz | 10 |
C. What is not known
- The author's reasons for many choices (for example the fixed collision push directions, the unused credits screen, the purpose of the write to port 0FDh at exit).
- How often the mouse cursor race happens in real play (chapter 12).
- How fast multiplayer ran on 1993 hardware (our measurements are from an emulator, chapter 2).
- An anomaly seen once in a lobby (a heard slot shown as "Free") was never reproduced.
- The random number generator (Borland's
rand) is not described; nothing in multiplayer depends on it, and a rebuild may use any generator. - Statements marked H in the chapters are guesses.
- The original program's source layout (how the author split the code into files) is only partly known; it does not affect how the game behaves.
The repository's runtime notes and progress report keep the full list of open questions.