code wiki / _hdl_build / nx_game_thirdperson_gate.nx
nx_game_thirdperson_gate.nx
buildroot/runtime/_hdl_build/nx_game_thirdperson_gate.nx
dependencies 5 imports · 0 importers
imports: nx_gate_gn.nxnx_gate_base.nxnx_game_raster.nxnx_png.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
| none |
functions
| 16 | func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 18 | func p_sign(v: i64) -> i64 { if v>0 {return 1} if v<0 {return 0-1} return 0 } |
| 19 | func p_clamp(v: i64, lo: i64, hi: i64) -> i64 { if v<lo {return lo} if v>hi {return hi} return v } |
| 22 | func tp_step(ps: *i64, ix: *i64, iy: *i64, got: *i64, ni: i64, gx: i64, gy: i64, ww: i64, wh: i64, dx: i64, dy: i64) -> i64 |
| 29 | func tp_goto(ps: *i64, ix: *i64, iy: *i64, got: *i64, ni: i64, gx: i64, gy: i64, ww: i64, wh: i64, tx: i64, ty: i64) -> i64 |
| 34 | func tp_cam(c: i64, cell: i64, screen: i64, worldpx: i64) -> i64 { return p_clamp(c*cell + cell/2 - screen/2, 0, worldpx - screen) } |
| 35 | func tp_render(fb: *i64, w: i64, h: i64, cell: i64, ww: i64, wh: i64, ps: *i64, ix: *i64, iy: *i64, got: *i64, ni: i64, gx: i64, gy: i64) -> i64 |
| 55 | func main() -> i64 |