code wiki / _hdl_build / nx_wasm_mineworld_mod_gate.nx
nx_wasm_mineworld_mod_gate.nx
buildroot/runtime/_hdl_build/nx_wasm_mineworld_mod_gate.nx
about
nx_wasm_mineworld_mod_gate.nx -- gate for BLOCKS-AS-DATA (the first loose-coupling rung of the moddable
architecture; operator: games = data-io + logic layers, mods change data, no recompile).
T1 the built-in DATA pack lazy-loads and the world renders (frame mostly terrain).
T2 a MOD = runtime data records: override grass -> RED via blk_set -> the SAME world re-renders visibly
differently (re-skin live, zero recompile) + PNG knowledge/nx_mineworld_mod.png (eyeball: red world).
T3 pack reset restores the base pack -> frame BYTE-IDENTICAL to T1 (reversible, deterministic).
T4 boundaries: block id 0 / >=MAXBLK REJECTED; an undefined in-range block renders LOUD MAGENTA (never silent).
T5 determinism re-render.
license_tier: ORIGINAL expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_f32_hw.nxnx_png.nxnx_wasm_mineworld.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
| none |
functions
| 15 | func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 16 | func pn(v: i64) -> i64 |
| 28 | func fbsum(base: i64) -> i64 |
| 35 | func rend(base: i64) -> i64 |
| 44 | func main() -> i64 |