code wiki / _hdl_build / nx_sitegen_game.nx
nx_sitegen_game.nx
buildroot/runtime/_hdl_build/nx_sitegen_game.nx
about
nx_sitegen_game.nx -- AUTO-BUILDER, GAME-PUBLISH page type. The Nishi team publishes a GAME onto a website
FROM DATA: it renders the sovereign last-mile game template (web_assets/_game_build/game_page.tpl.html --
the operator's proven pets3d_mp.html shell, kept BYTE-VERBATIM so we never transcribe the wasm ABI binding)
against the game's fields (title / wasm_url / framebuffer dims / display dims / default room / controls).
The JS is the documented LAST-MILE ONLY shim (zero game or netcode logic; all logic is in the sovereign
wasm); on the Nishi browser this binding is native. Slots are filled by nx_cms_render's {{key}} engine, so
every non-_html field is injection-ESCAPED by construction (a malicious title/url cannot break out of the
page). Data-driven => the SAME engine publishes ANY game by swapping the wasm + fields. Composes
nx_cms_render + nx_cms_store. license_tier: ORIGINAL
dependencies 3 imports · 2 importers
imports: nx_cms_render.nxnx_cms_store.nxnx_syscalls.nx
imported by: nx_site_compose.nxnx_sitegen_game_gate.nx
structs
| none |
consts
| none |
functions
| 15 | func sgg_put(store: *u8, off: i64, key: *u8, val: *u8) -> i64 called by 1: sgg_build |
| 27 | func sgg_build(fd: i64, tpl_path: *u8, title: *u8, wasm_url: *u8, fb_w: *u8, fb_h: *u8, disp_w: *u8, disp_h: *u8, room: *u8, controls_html: *u8) -> i64 |