code wiki / _hdl_build / nx_game_critic_gate.nx

nx_game_critic_gate.nx

buildroot/runtime/_hdl_build/nx_game_critic_gate.nx

8380 B190 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic game
docsdependenciesstructsconstsfunctions

about

nx_game_critic_gate.nx -- proves nx_game_critic is a REAL quality instrument, not a rubber stamp. It renders a TOY frame (exactly the current games' style: flat clear + starfield dots + flat discs + flat HUD bars) and a RICH frame (2D gradient nebula + per-pixel texture + glowing multi-ring stations + gradient HUD), and proves the critic scores the toy one TOY/BASIC and the rich one RICH/SOTA -- with a wide margin. The HONEST AUDIT: the toy render is a faithful copy of what nx_frontier_engine / nx_drift_engine actually draw today, so the gate's own output states in-band that the shipped games are TOY by this critic. The mutation tooth: flatten the "rich" frame and it must collapse to TOY too (the critic measures richness, not some spurious constant). license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_game_critic.nx nx_game_raster.nx nx_game_critic_gate.nx

imports: nx_syscalls.nxnx_game_critic.nxnx_game_raster.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 mk_toy gr_clear gr_pack gr_px gr_disc gr_px ↻ sx sy gr_rect mk_rich gr_pack ↻ gr_px ↻ glow gr_disc ↻ gr_pack ↻ sx ↻ sy ↻ gr_rect ↻ gc_score sys_mmap ↻ gc_lum gc_quality gc_capw ww sys_write wn sys_write ↻ sys_mmap ↻ gc_verdict

structs

none

consts

13const W: i64 = 400
14const H: i64 = 240

functions

16func ww(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 wn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
26func sx(i: i64) -> i64 { return 44 + i*76 }
called by 2: mk_toymk_rich
27func sy(i: i64) -> i64 { if i%2==0 { return 84 } else { return 150 } }
called by 2: mk_toymk_rich
30func mk_toy(fb: *i64) -> i64
called by 1: main calls 7: gr_cleargr_packgr_pxgr_discsxsy+1
53func glow(fb: *i64, cx: i64, cy: i64, rad: i64, cr: i64, cg: i64, cb: i64) -> i64
called by 1: mk_rich calls 2: gr_discgr_pack
68func mk_rich(fb: *i64, flat: i64) -> i64
called by 1: main calls 6: gr_packgr_pxglowsxsygr_rect
130func main() -> i64