code wiki / _hdl_build / nx_entity_gate.nx
nx_entity_gate.nx
buildroot/runtime/_hdl_build/nx_entity_gate.nx
about
nx_entity_gate.nx -- start of GAMEPLAY: entities with per-frame state on the sovereign 3D world. 5 creatures
wander (position updated each frame, bounce at edges), placed on the terrain, rendered as boxes via the world's
object primitive. 4 frames -> 2x2 contact sheet -> sovereign PNG (nx_png). The WORLD is static and the ENTITIES
move => proves entity state evolves per frame (not just camera). exit 0 = rendered. 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 = 640 |
| 10 | const SH: i64 = 480 |
| 11 | const NE: i64 = 5 |
functions
| 13 | func mk(seed: i64, n: i64, water: i64, maxh: i64, latsp: i64, |
| 21 | func main() -> i64 |