code wiki / _hdl_build / nx_wasm_pong_html.nx

nx_wasm_pong_html.nx

buildroot/runtime/_hdl_build/nx_wasm_pong_html.nx

3490 B36 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind orphan librarytopic wasm
docsdependenciesstructsconstsfunctions

about

nx_wasm_pong_html.nx -- SOVEREIGN packager: the Pong wasm -> a self-contained REAL-TIME playable .html. JS does ONLY: blit our wasm framebuffer, track held keys -> bitmask (up/down), a requestAnimationFrame loop calling ex.tick(input)+ex.render(). All logic+render in sovereign wasm (no JS logic/canvas-draw/float). usage: nx_wasm_pong_html <in.wasm> <out.html>. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_base64.nx nx_wasmfit.nx nx_html_head_fd.nx nx_wasm_pong_html.nx

imports: nx_syscalls.nxnx_base64.nxnx_wasmfit.nxnx_html_head_fd.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

10func 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 }
12func main(argc: i64, argv: *i64) -> i64