code wiki / _hdl_build / nx_game_grow.nx

nx_game_grow.nx

buildroot/runtime/_hdl_build/nx_game_grow.nx

3160 B44 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic game
docsdependenciesstructsconstsfunctions

about

nx_game_grow.nx -- GROW the game domain of the LIVE universal Nishi-builder catalog, then CONSUME a grown level on that same SSOT -- the build->teach->grow->consume loop run end-to-end on the real catalog. Teaches new mechanics / entities / tilemaps / sprites / levels (idempotent, additive), then runs the deterministic spec->runtime (nx_game_render) on a newly-taught level to prove growing the catalog grows what PLAYS with no code change. Mirrors nx_ad_emitter_grow for the game domain. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_nishi_builder.nx nx_game_render.nx nx_ad_serve.nx nx_syscalls.nx nx_game_grow.nx

imports: nx_nishi_builder.nxnx_game_render.nxnx_ad_serve.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gg_p sys_write gg_reg nb_register nb_present sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nb_field nb_streq sys_mmap ↻ sys_openat_append sys_write ↻ sys_close ↻ gg_p ↻ gg_i sys_mmap ↻ sys_write ↻ nb_count sys_mmap ↻ sys_read_file ↻ nb_field ↻ nb_streq ↻ sys_mmap ↻ ng_sim_run sys_mmap ↻ nb_lookup sys_mmap ↻ sys_read_file ↻ nb_field ↻ nb_streq ↻ ng_token_count ng_int_of ng_field ng_kv

structs

none

consts

10const K_MAGIC_4096: i64 = 4096

functions

12func gg_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: gg_regmain calls 1: sys_write
13func gg_i(v: i64) -> i64 { let t: *u8 = sys_mmap(24); var m: i64 = v; var k: i64 = 0; if m == 0 { t[0]=48 as u8; k=1 } while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } let o: *u8=sys_mmap(24); var w: i64=0; var q: i64=k-1; while q>=0 { o[w]=t[q]; w=w+1; q=q-1 } sys_write(1,o,w); return 0 }
called by 1: main calls 2: sys_mmapsys_write
14func gg_reg(kind: *u8, id: *u8, label: *u8, tpl: *u8) -> i64
called by 1: main calls 2: nb_registergg_p
20func main(argc: i64, argv: *i64) -> i64