code wiki / _hdl_build / nx_wasm_mineworld_tick_gate.nx

nx_wasm_mineworld_tick_gate.nx

buildroot/runtime/_hdl_build/nx_wasm_mineworld_tick_gate.nx

9969 B224 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic wasm
docsdependenciesstructsconstsfunctions

about

nx_wasm_mineworld_tick_gate.nx -- gate for the SOVEREIGN TICK (operator law: NO JS game logic -- the wasm owns camera/physics/trig/aim). T0 integer-trig sanity. T1 walk+mouse-look move the camera (turned heading moves BOTH axes). T2 gravity settles to the surface; jump rises then lands back exactly. T3 a 3-high wall BLOCKS walking (step-up rule <=1.3). T4 aim-ray dig/put edit the world from camera state alone. T5 the whole sim is DETERMINISTIC: an identical input script on two fresh worlds renders byte-identical frames. T6 the per-voxel texture hash varies. PNG knowledge/nx_mineworld_tick.png = post-walk frame (fog + textured blocks). license_tier: ORIGINAL expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_f32_hw.nx nx_png.nx nx_wasm_mineworld.nx nx_wasm_mineworld_tick_gate.nx

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

main mw_sin4096 iabs mw_cos4096 mw_sin4096 ↻ hw sys_write sys_mmap mem_bytes start_at cam_ptr surface_y kind_c mw_eget mw_key mw_ehash col_pack terrain_h0 mw_o2 biome_of mw_o2 ↻ has_tree cave3 mw_h3 mw_h3 ↻ cam_ptr ↻ tick_at cam_ptr ↻ mw_sin4096 ↻ mw_cos4096 ↻ mw_fd256 phys_solid kind_c ↻ kind_c ↻ floor_y phys_solid ↻ pn sys_mmap ↻ sys_write ↻ mw_fd256 ↻

structs

none

consts

none

functions

13func hw(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 1: main calls 1: sys_write
14func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
26func fbsum(base: i64) -> i64
called by 1: main calls 3: fb_offwwhh
33func iabs(v: i64) -> i64 { if v < 0 { return 0 - v } return v }
called by 1: main
35func c_a_head_below(base: i64, roof_gy: i64) -> i64
called by 1: main calls 2: cam_ptrmw_fd256
42func script(base: i64) -> i64
called by 1: main calls 1: tick_at
54func main() -> i64