code wiki / (root) / nx_econ_game.nx

nx_econ_game.nx

buildroot/runtime/nx_econ_game.nx

4780 B49 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_econ_game.nx -- SOVEREIGN VISUAL ENGINE rung V3b: build-and-PLAY tycoon. Fuses the build-and-place board with a live economy: place factories (produce goods) + stores (sell goods), pay upkeep, money ticks each month -> win at $5000 or go bankrupt. Economy mirrors the gated nx_caplab_* sim (produce/sell/margin). The .nx organ emits the entire playable client (sovereign, organ-authored JS; single-quoted -> no escaping). This is capitalism-lab build-and-place WITH visuals, playable in-browser. license_tier: ORIGINAL.

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_econ_game.nx nx_econ_game_test.nx

imports: nx_syscalls.nx

imported by: nx_econ_game_test.nx

structs

none

consts

none

functions

12func eg_app(out: *u8, off: *i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { out[off[0]] = s[i]; off[0] = off[0] + 1; i = i + 1 } return 0 }
called by 1: nx_econ_game_page
14func nx_econ_game_page(out: *u8, out_cap: i64) -> i64
40func nx_econ_game_save(path: *u8) -> i64