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)

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 }
14func pn(v: i64) -> i64
26func fbsum(base: i64) -> i64
33func iabs(v: i64) -> i64 { if v < 0 { return 0 - v } return v }
35func c_a_head_below(base: i64, roof_gy: i64) -> i64
42func script(base: i64) -> i64
54func main() -> i64