Game Engine
One in-house TypeScript ECS engine. A deterministic simulation you watch play itself. Four games proving the engine is really generic.
A monorepo where the interesting part isn't any one game — it's the shared, generic ECS engine underneath, and the discipline that keeps it honest: determinism you can prove, a dependency rule the build enforces, and a corpus that records why every decision was made.
The core ideas
You watch, mostly
The sim runs itself. Farm Valley is 21 BDI farmers competing over 100 days; Hollow is a multi-generational town you seed and observe. The player's hand is light — placement and intent, not micromanagement. MateQuest is the exception that proves the engine generic: there, every turn is yours.
Determinism is load-bearing
All randomness flows through a seeded mulberry32 RNG with named forks. No
Math.random, no Date.now in sim code. A run is fully described by seed +
params and reproduces byte-for-byte.
The engine never knows the game
A four-layer dependency rule — enforced, not aspirational: kernels → engine → game sim-cores → clients. The engine imports no game; the games never import each other.
Assets are code
Sprites are ASCII PixelRecipe grids baked to an atlas at build time; the UI
font is a vendored bitmap baked at boot. Byte-identical art on every machine,
no binary blobs to drift.
Four games, one seam
Farm Valley 🌾
21 farmers (20 AI archetypes + the playable Pip) plant, harvest, and trade over 100 in-game days. The sim runs server-side; the browser is a thin WebSocket client interpolating snapshots. → Read more
Citadel 🏰
A cozy settlement sim — a placement puzzle you read by watching the town live. Threats dent happiness, never destroy. Runs the sim in an in-browser Web Worker; buildings are in-code 3D meshes baked to sprites. → Read more
Hollow 🌙
A director's-eye, multi-generational social sim: needs, scarcity, emergent communities, heritable genomes — and the one game with a real 3D layer. The engine's agent kernel, promoted and reused. → Read more
MateQuest 📐
A Romanian-curriculum math roguelike for grades I–IV, where solving a problem is the combat action — not a toll gate in front of it. → Read more
The authored pages (Overview, The engine, Patterns, and each game) are the
showcase. The Design corpus section renders durable pages straight from the
project's corpus/ wiki — the source of truth — so the deep detail can't drift
from what the site claims.