code wiki / (root) / nx_dungeon_alpha_wasm.nx

nx_dungeon_alpha_wasm.nx

buildroot/runtime/nx_dungeon_alpha_wasm.nx

10045 B326 linesdepth 0pulls 0 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_dungeon_alpha_wasm.nx -- Generates a dungeon crawler game with combat, movement, and rendering in WebAssembly.

dependencies 0 imports · 0 importers

imports: none

imported by: nobody (leaf or entry point)

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

main gi_init g_build_level g_cell_set g_rng g_place g_rng ↻ g_cell_get g_cell_set ↻ gi_render g_render_combat g_fill_rect g_render_world g_cell_get ↻ g_fill_rect ↻ gi_get

structs

none

consts

2const K_MAGIC_1024: i64 = 1024
3const K_MAGIC_1103515245: i64 = 1103515245
4const K_MAGIC_12345: i64 = 12345
5const K_MAGIC_32767: i64 = 32767
6const K_MAGIC_4096: i64 = 4096
7const K_MAGIC_65536: i64 = 65536

functions

40func g_rng() -> i64
48func g_cell_get(x: i64, y: i64) -> i64
57func g_cell_set(x: i64, y: i64, v: i64) -> i64
64func g_place(kind: i64, n: i64) -> i64
83func g_build_level() -> i64
125func g_dungenc_step(s: i64, e: i64) -> i64
136func gi_init(seed: i64) -> i64
called by 2: gi_inputmain calls 1: g_build_level
150func gi_next() -> i64
called by 1: gi_input calls 1: g_build_level
160func g_try_move(dx: i64, dy: i64) -> i64
182func g_attack() -> i64
210func g_flee() -> i64
called by 1: gi_input calls 1: g_dungenc_step
222func gi_input(key: i64) -> i64
249func g_fill_rect(x0: i64, y0: i64, ww: i64, hh: i64, col: i64) -> i64
265func g_render_world() -> i64
called by 1: gi_render calls 2: g_cell_getg_fill_rect
288func g_render_combat() -> i64
called by 1: gi_render calls 1: g_fill_rect
305func gi_render() -> i64
called by 1: main calls 2: g_render_combatg_render_world
312func gi_get(field: i64) -> i64
called by 1: main
317func gi_fb_offset() -> i64 { return K_MAGIC_65536 }
318func gi_fb_w() -> i64 { return 320 }
319func gi_fb_h() -> i64 { return 240 }
322func main() -> i64