code wiki / (root) / nx_desktop_craft.nx

nx_desktop_craft.nx

buildroot/runtime/nx_desktop_craft.nx

9007 B217 linesdepth 8pulls 19 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_desktop_craft.nx -- NISHI CRAFT native: the generated 3D voxel world in a real desktop window, ZERO wasm / ZERO JS / ZERO third-party anything -- the same nx_wasm_craft organ the browser page runs, on the shared nx_desktop_game surface. This is the no-webassembly path the operator asked for; the Nishi Browser launches exactly this binary when a page carries the nishi-game marker. `nx_desktop_craft selftest` proves the whole pipeline against the real X server with no human. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_wasm_craft.nx nx_desktop_game.nx nx_desktop_craft.nx

imports: nx_syscalls.nxnx_wasm_craft.nxnx_desktop_game.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap init_impl init_impl_v wc_spec wsp wpack wst ejp wsp ↻ genworld wst ↻ gencol wsp ↻ wheight wsp ↻ wnoise wclamp wnoise3 whash whash ↻ vset vin wvx gentrees wsp ↻ wst ↻ wheight ↻ whash ↻ vset_box vset ↻ wc_wmax wst ↻ genmobs mobp en_init en_o_gen en_o_alive en_cap en_o_dense

structs

none

consts

10const K_MAGIC_1000000: i64 = 1000000
11const K_MAGIC_4096: i64 = 4096
12const K_MAGIC_20260728: i64 = 20260728
13const K_MAGIC_40000: i64 = 40000
14const K_MAGIC_3000: i64 = 3000

functions

16func dcw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
17func dcn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
31func dc_save_world(base: i64) -> i64
44func dc_load_world(base: i64) -> i64
54func dc_ms(ts: *i64) -> i64
called by 1: main calls 1: sys_clock_gettime_mono
59func main(argc: i64, argv: *i64) -> i64