Skip to content

A town simulation in pale isometric line art, implemented with Ritmo ECS and PixiJs 3D

Point docs at the moved sources

SandroMaglione3238d7dd9d1c
diff --git a/PLAYTEST.md b/PLAYTEST.md
index 3ffbcb4..c60eafb 100644
--- a/PLAYTEST.md
+++ b/PLAYTEST.md
@@ -71,6 +71,6 @@ steps that show it into a test, fixes it, and deletes the replay.
the start is easy to rebuild (`test/homes-edit.test.ts` came from one).
- A replay recorded before a schema change fails with "replay recorded with
an older schema": ask for a new one.
-- The recorder is wired in `src/dev/devtools.ts`; the simulation's input is
+- The recorder is wired in `src/app/devtools.ts`; the simulation's input is
the `Edits` source (plain edits), and its messages to the page are the
`Toast` and `Selection` events.
diff --git a/docs/balance-model.md b/docs/balance-model.md
index 5598023..e1ccc1e 100644
--- a/docs/balance-model.md
+++ b/docs/balance-model.md
@@ -2,7 +2,7 @@
The model reads the game's content and pure rules. It runs independently of the ECS and renderer. The game never imports `tools/balance/`. The verification layer deliberately starts the real headless game to check selected predictions.
-No values in `src/content.ts` changed when this component was added. Private carrier/walker constants moved into shared configuration with their original values. `src/rules/` owns immutable inputs and the existing household, tax, trade, approval, production cadence, staffing, season, risk, road-choice and dispatch-priority functions. The simulation calls the same functions. Grid and desirability calculations retain their existing shared implementations.
+No values in `src/game/content/index.ts` changed when this component was added. Private carrier/walker constants moved into shared configuration with their original values. `src/rules/` owns immutable inputs and the existing household, tax, trade, approval, production cadence, staffing, season, risk, road-choice and dispatch-priority functions. The simulation calls the same functions. Grid and desirability calculations retain their existing shared implementations.
The model shares the street factors on room and taxes, the bread bonus, and the continuous desirability rules with the game. It does not model the grudge over taxes (the forecast keeps the memory at zero) nor the faster walking on paved streets; neither appears in the verified scenarios.
@@ -34,7 +34,7 @@ The original bot is used as an existing consumer for diagnosis and behavior-pres
## API and ownership
```ts
-import { resolveRules } from "./src/rules/config.ts"
+import { resolveRules } from "./src/game/rules/config.ts"
import { analyze, project, fromSnapshot, assessTransfers } from "./tools/balance/index.ts"
const rules = resolveRules()
diff --git a/docs/pr20-models.md b/docs/pr20-models.md
index 8f47219..0a422a3 100644
--- a/docs/pr20-models.md
+++ b/docs/pr20-models.md
@@ -11,7 +11,7 @@ plank bearers, chairs and chest stay inside the original two-cell plot.
It has no flue or smoke emitter. Furniture uses the same chair and chest
geometry in the work yard and on delivery carts.
-The civic milestones have full models in `src/asset-lab/civic.ts`. The
+The civic milestones have full models in `src/render/three/assets/civic.ts`. The
guildhall is a steep-roofed guild house with a prominent clock tower,
balcony, dormers and guild banners. The city hall has lower wings, corner
pavilions, a columned portico, ceremonial stair and large ribbed dome with
@@ -46,7 +46,7 @@ geometry, economy values and simulation rules are unchanged. The three home
height fields in content are drawing dimensions used by construction and effects.
Construction uses `scaffoldAsset(size, height, share)` from
-`src/asset-lab/scaffolding.ts`. It has no building-kind branches or model
+`src/render/three/assets/scaffolding.ts`. It has no building-kind branches or model
lookup. Modular timber bays, up to two working platforms, an access ladder,
canvas screens and supply piles fit inside the plot. Central bays on all
four sides remain clear at ground level. One generator covers every
diff --git a/docs/service-upgrade-assets.md b/docs/service-upgrade-assets.md
index d505590..ce25402 100644
--- a/docs/service-upgrade-assets.md
+++ b/docs/service-upgrade-assets.md
@@ -6,7 +6,7 @@ the town draws them once a market or chapel is upgraded (see `Kind.upgrade`).
## Asset API
-`src/asset-lab/service-upgrades.ts` exports `marketHall()`, `church()`, and:
+`src/render/three/assets/service-upgrades.ts` exports `marketHall()`, `church()`, and:
```ts
serviceBuilding("market", 2) // market-hall
@@ -23,7 +23,7 @@ integration should support the existing `BuildingOptions` conventions for
road-facing doors, construction fitting, plate visibility and separate motion.
Do not replace `buildingAsset()` with the preview help## In the town
-`buildingAsset(id, …, upgraded)` in `src/render3d/models.ts` draws an
+`buildingAsset(id, …, upgraded)` in `src/render/three/models.ts` draws an
upgraded market or chapel with `serviceBuilding(kind, 2, { plate: false, doors })`.
The town draws plates apart, so the model leaves its own out. The model turns a
quarter at a time (`quartersFor`) to put the most of its street fronts on the
@@ -35,7 +35,7 @@ marker). The market hall drops the market's flag. The model cache key includes
the tier.
The building panel pictures an upgraded building with its model
-(`src/render3d/portrait.ts`): drawn once from the town's own camera, at the
+(`src/render/three/portrait.ts`): drawn once from the town's own camera, at the
town's scale and cropped to the model, beside the 2D pictures of the rest.
oes not activate upgrades.