code wiki / _hdl_build / nx_game_loop_gate.nx
nx_game_loop_gate.nx
buildroot/runtime/_hdl_build/nx_game_loop_gate.nx
about
nx_game_loop_gate.nx -- a COMPLETE game loop on the sovereign 3D engine: a player pursues + collects creatures,
win when all collected. Scripted playthrough (player steps toward the nearest creature each frame, captures on
contact) rendered as a 3x2 sheet -> sovereign PNG. Mirrors the dungeon/tactics "scripted input -> playthrough ->
victory" proof, now in 3D. Win frame gets a green banner. exit 0 = ran. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_voxel_world.nxnx_png.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 9 | const SW: i64 = 960 |
| 10 | const SH: i64 = 720 |
| 11 | const NC: i64 = 4 |
functions
| 13 | func giabs(a: i64) -> i64 { if a < 0 { return 0 - a } return a } called by 1: main |
| 14 | func mk(seed: i64, n: i64, water: i64, maxh: i64, latsp: i64, |
| 22 | func main() -> i64 |