code wiki / _hdl_build / nx_platformer_play.nx

nx_platformer_play.nx

buildroot/runtime/_hdl_build/nx_platformer_play.nx

2653 B66 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_platformer_play.nx -- the PLATFORMER as a native, pure-Nishi, terminal-playable game. Bottom-up: integer no-float logic (nx_wasm_platformer) + ANSI truecolor render (nx_platformer_term) + raw-mode keyboard, all via sys_* -- NO blit, NO browser, NO JS, NO third-party. The hero auto-runs; press SPACE/W to jump the floating coins, reach the cyan exit. Run it in a terminal: builds to /tmp/nx_platformer_play.sov.elf (run directly). license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_platformer_term.nx nx_wasm_platformer.nx nx_syscalls.nx nx_platformer_play.nx

imports: nx_platformer_term.nxnx_wasm_platformer.nxnx_syscalls.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 sset cset fset praw_on sys_ioctl sys_write pt_frame rgb cget coin_x fget foe_x sget pt_emit pt_esc pt_s pt_n sys_mmap ↻ pt_s ↻ sget ↻ sys_read sget ↻ tick_impl sget ↻ sset ↻ cget ↻ coin_x ↻ cset ↻ fget ↻ foe_x ↻ fset ↻ sys_sleep_ms sys_mmap ↻ sys_munmap praw_off sys_ioctl ↻

structs

none

consts

9const K_MAGIC_2097152: i64 = 2097152
10const K_MAGIC_131072: i64 = 131072
11const K_MAGIC_1500: i64 = 1500

functions

14func praw_on(orig: *u8, raw: *u8) -> i64
called by 1: main calls 1: sys_ioctl
28func praw_off(orig: *u8) -> i64 { sys_ioctl(0, 0x5402, orig as i64); return 0 }
called by 1: main calls 1: sys_ioctl
30func main(argc: i64, argv: *i64) -> i64