Commit 730601b
committed
ANNALS: procedurally generated living kingdom in a single HTML file
A watchable real-time 3D fantasy kingdom simulator (vanilla JS + Three.js
r128 from CDN, no build step, no assets). Seed in the URL hash fully
determines the world via seeded sfc32 RNG with separate gen/history streams.
- Worldgen: fBm terrain with domain warp and mountain spine, flow-carved
rivers, biomes, settlement siting, A* king's roads with bridges, organic
building layout (12 archetypes x 3 tiers), walls, keep, procedural heraldry
- Rendering: instanced buildings/trees/soldiers, vertex-color seasons with
snow, day/night cycle, weather particles, sky dome, camera-tracking shadows
- Camera: spring-damper rig with free/follow/director modes, curved altitude
path, terrain collision
- Simulation: daily tick for weather, seven-good economy with caravans and
cogs, population pools with hunger cascade, dynasty and five great houses
with loyalty/legitimacy/unrest, succession (incl. regencies and crises),
civil wars with field battles, sieges, sacks, exile and new-blood peerage
- Threats: SIR plague riding the trade network with emergent quarantine,
spreading fires, floods, droughts, earthquakes, bandit camps and kings,
a dragon whose wake probability scales with the treasury, omens, myth dial
- Chronicle: dated annalist entries, clickable fly-to, reign headers,
filters, txt export; auto-director with beat cards and Watch mode
- 15 Acts, 5 overlays, rate sliders, inspector, share links
Verified headless: 200 unattended sim-years hold population, treasury, and
houses in sane bounds with zero errors.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJUuoQXWUkMk2YSxRM2MSp0 parents commit 730601b
2 files changed
Lines changed: 3167 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
0 commit comments