code wiki / (root) / nx_build_place.nx

nx_build_place.nx

buildroot/runtime/nx_build_place.nx

4176 B49 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic build
docsdependenciesstructsconstsfunctions

about

nx_build_place.nx -- SOVEREIGN VISUAL ENGINE rung V3: the BUILD-AND-PLACE board. The operator's repeated ask: a spatial click-to-PLACE game UI (place factories / stores on a map), NOT a slider dashboard. This organ EMITS a complete, self- contained interactive canvas page (the .nx organ authors all HTML/JS -- no Claude-written JS): a tile grid, a palette (Factory/Store/Bulldoze), click-to- place, and live counts. Sprites drawn as fillRect compositions in the emitted JS. Single-quoted JS/unquoted attrs -> no escaping. license_tier: ORIGINAL.

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_build_place.nx nx_build_place_test.nx

imports: nx_syscalls.nx

imported by: nx_build_place_test.nx

structs

none

consts

11const K_MAGIC_65536: i64 = 65536

functions

13func bp_app(out: *u8, off: *i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { out[off[0]] = s[i]; off[0] = off[0] + 1; i = i + 1 } return 0 }
called by 1: nx_build_place_page
16func nx_build_place_page(out: *u8, out_cap: i64) -> i64
40func nx_build_place_save(path: *u8) -> i64