code wiki / _hdl_build / nx_wasm_html_fps.nx

nx_wasm_html_fps.nx

buildroot/runtime/_hdl_build/nx_wasm_html_fps.nx

5227 B28 linesdepth 2pulls 3 transitivereach 0 importersview sourcekind tooltopic wasm
docsdependenciesstructsconstsfunctions

about

nx_wasm_html_fps.nx -- SOVEREIGN packager for the FIRST-PERSON wasm world: reads the .wasm, base64s it (sovereign nx_base64), and emits a self-contained playable .html whose shim is pointer-lock mouse-look + WASD movement (camera state in JS, owns trig; calls render(camx256,camy256,camz256,yc,ys,pc,ps) per frame and blits the framebuffer). The JS is EMITTED OUTPUT (the browser last-mile), not a build piece. Single-quoted so no escapes. usage: nx_wasm_html_fps <in.wasm> <out.html>. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_base64.nx nx_wasm_html_fps.nx

imports: nx_syscalls.nxnx_base64.nx

imported by: nobody (leaf or entry point)

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

main hw sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close b64_encode b64_enc_char sys_openat_wr sys_write ↻ sys_close ↻

structs

none

consts

none

functions

9func hw(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 1: main calls 1: sys_write
11func main(argc: i64, argv: *i64) -> i64