How NetWars Works Appendices

Appendices

Where the game's data lives, every important constant in one table, and what is still not known.

A. Where the data lives

DataReadable formAs 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 charactersassets/fonts/font8x8.txt src/data/font8x8.inc
sine, cosine, square tablesformulas in chapter 3src/data/sintab.h, costab.h, sqtab.h
all texts (messages, menus, help)src/msgtable.asm
sound effect tablessrc/sound.asm (chapter 10)
alien kinds, pod places, star directions, explosion spark directions, colours, collision pushessrc/tables.c, src/globals.c
multiplayer start cornersin 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.

TopicConstantValueChapter
timetimer tick18.2 per second (54.925 ms)2
SP frame rateat most one frame per tick2
MP frame ratedisplay refresh (~70/s), paced by peers, wait ≤ 5 ticks2, 8
numbersworld unitraw 64-bit value ÷ 655363
Q1416384 = 1.03
angles2048 steps per turn3
distance exponentshrink while any m > 16384 or m < −16385; grow while all in [−8192, 8191]; cap 83
worldpods6, at ±1000 on the axes3, 7
alien spawn distance16384, to the side7
MP start cornerssquare of side 2048 in x–z3
satellite spawn area±10000 per axis around the origin7
shipthrottlesteps of 8, up to 144, down to −112; extra thrust doubles4
velocity correction0.5 / 1 / 2 / 4 / 8 (16 with extra thrust) per frame4
keyboard turn rate+2 per frame up to 244
shields32 max6
collisionimmunity 8 frames, tumble 48 frames at ±48, push 64 per frame4
respawn (MP)1024 along "up"4
contact ("touching")every coordinate difference below about 256; satellites 1286, 7
lasersyour shotship velocity + 1024, 24 frames, 8 slots, every 3rd frame6
your hit box±512 along, ±192 sideways (±96 for small targets)6
alien shot1024, 24 frames, 8 slots6
alien hit slab±1024 right, ±256 along and up6
damage1 shield (2 powered, MP); aliens −1 hit point (−2 with fire power)6
missilesyours16 at start, 4 in flight, 400 per frame, turn 128, accel 25, always kills6
lock window±384 around the line of sight6
Pirate's400, turn 8, gives up beyond 16,3846, 7
Commander's400, turn 32, accel 12.5, never gives up6, 7
aliensPirate2 hits, 125 (to 250), turn 24, 100 points7
Fighter2 hits, 175, turn 24, 150 points7
Guardian4 hits, 275, turn 32, 200 points7
Commander / mutant8 hits, 225, turn 32, 400 points7
in flight at once4 (levels 1–13), then 5, 6, 7, 87
levelsbudgetsPirates 8; Fighters 2(n−1); Guardians 2(n−2); Commanders 2(n−4); each ≤ 87
spawn / satellite periodevery 64th / 128th frame7
bonuspods × level × 1000, +8 shields7
scorepointsaliens 100–400, missile 25, MP hit 506, 7
wrapabove 1,000,000 subtract 1,000,0007
networkuniverses, slots8, 4 (+ spectators)8
state packet130 bytes of data per frame8
liveness4 frames; lobby "Free" after 32 lobby frames8
picturescreen640 × 350, 16 colours, pixels 1.37 × taller than wide9
projection512 · x ÷ z, 384 · y ÷ z; view 64° × 49°9
view testz > 512 camera units, |x| ≤ z, |2y| ≤ z9
stars256 (64 in Lines), within 43°9
soundeffects6, one tone per tick, 1,193,182 ÷ divisor Hz10

C. What is not known

The repository's runtime notes and progress report keep the full list of open questions.