4 Commits
Author SHA1 Message Date
PolyCity 209d8efdf5 Professional City Advisor rewrite + wall-clock simulation
Advisor v2:
- Phased policy (founding/village/town/city) with scaling reserves
- Maximal-coverage siting: services score candidate spots by count of
  previously-uncovered developed buildings in radius
- RCI gradient genesis: homes north, commerce buffering, industry
  set back 2 extra tiles; per-tile separation filters on new districts
- District placement scored by runway length and distance from housing
- Power sized to PROJECTED demand (history-smoothed growth x14 months)
  with tech diversity cap (<=3 per type) and home-distance scoring
- Collector roads: cluster orphaned plots, one straight L-path
- Budget discipline: one big-ticket purchase max per pass

Simulation core:
- City clock now advances in wall time (tick-guard bounded), decoupled
  from render fps — slow devices no longer freeze the city
- Smoke test polls in game-time (monthIndex targets), not wall time
2026-08-23 04:59:48 +00:00
PolyCity a54f04ed5f Auto-Build advisor + resilient simulation loop
- New advisor button (toolbar, purple wand): one click per planning pass
  * Genesis: founds a town from a blank map (main street + zone bands)
  * Keeps power ahead of demand (wind/solar/coal by deficit size)
  * BFS road spurs to reach orphaned zoned land
  * Stamps new districts when demand is high and empty plots run out
  * Places the weakest service coverage; parks/plazas for land value
  * Never spends below an emergency reserve; recomputes power per action
- Simulation no longer dies when rAF throttles: interval watchdog
  compensates only after 3s of total frame silence
- preserveDrawingBuffer now opt-in via ?cap=1 (software-GL perf)
- Smoke test drives via game API, prefers headless_shell binary,
  tolerates stalled screenshots; engine suite at 51 assertions
2026-08-23 03:28:17 +00:00
PolyCity 77931e9747 Tornado disasters + settings toggle
- Monthly-chance tornadoes (after month 30 grace) carve a wide erratic
  path, flattening buildings into rubble; anchors stay consistent
- 'Tornado disasters' toggle in menu settings, persisted
- Help handbook documents the hazard and the rebuild loop
- Engine suite grows to 45 assertions (spawn damage, event, anchors,
  suppression when disabled); soak keeps economy focus disaster-free
2026-08-22 19:37:36 +00:00
PolyCity 56bf3fa2a2 PolyCity v1.0 — full-featured 3D city-builder (Three.js + Vite)
- Procedural island maps, RCI zoning, demand-driven growth
- City-wide power grid with brownouts; wind coastal bonus
- Land value, upgrades, services, pollution, fires & fire spread
- Budget/taxes, happiness, milestones, quest onboarding
- Traffic agents, day/night cycle, adaptive render scale
- Saves: autosave + 3 slots + JSON export/import
- PWA (offline), GitHub Pages/Netlify deploy configs
- Tests: 40-assertion engine suite + headless E2E
2026-08-22 19:17:10 +00:00