code wiki / _hdl_build / nx_platformer_play.nx
nx_platformer_play.nx
buildroot/runtime/_hdl_build/nx_platformer_play.nx
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
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
structs
| none |
consts
| 9 | const K_MAGIC_2097152: i64 = 2097152 |
| 10 | const K_MAGIC_131072: i64 = 131072 |
| 11 | const K_MAGIC_1500: i64 = 1500 |
functions
| 14 | func praw_on(orig: *u8, raw: *u8) -> i64 |
| 28 | func praw_off(orig: *u8) -> i64 { sys_ioctl(0, 0x5402, orig as i64); return 0 } |
| 30 | func main(argc: i64, argv: *i64) -> i64 |