Commit Graph
8 Commits
Author SHA1 Message Date
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 3266b8d640 Toolbar polish: tool prices on buttons, robust stats listener, closeInfoPopup fix; tests on isolated ports 2026-08-23 01:40:32 +00:00
PolyCity bb6c087490 SimCity-style toolbar: colored pictogram icons + grouped UX
- All 16 icons redrawn as rich multi-color SVGs (houses, towers,
  factory, plants with smoke, services with badges/crosses, park,
  fountain, stadium) — unique gradient ids, no collisions
- Toolbar grouped under labeled sections: Tools / Zones / Power /
  Safety / Health / Leisure
- Every button shows price (FREE for zones); unaffordable buildings
  dim and turn red as funds change
- Keyboard-shortcut badges on buttons; bigger 30px icons; hover lift
- Floating status chip above the bar shows active tool, price,
  upkeep and coverage radius (SimCity status-bar feel)
- FIX: Game.ui was a method while input.js read it as a property, so
  tool-change UI updates silently never ran; now a proper getter
2026-08-23 01:34:23 +00:00
PolyCity 1c0eb70f0f preview server: accept any Host for public demo tunnels 2026-08-23 01:04:23 +00:00
PolyCity 60a92408bb CHANGELOG, tornado showcase shot, capture script update 2026-08-22 19:41:13 +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 2a614b5435 Balance pass + 40-year soak test
- Power consumption x4: the grid now matters from mid-town on
- Realistic tax multipliers, trimmed service upkeep: profitable cities
- Buildings may claim empty zoned plots (services fit downtown)
- Land value ladder: maturity bonus, size-scaled upgrade sampling,
  thresholds 34/74 -> full L1->L2->L3 density progression
- Soak test: 40 simulated years, 11/11 asserts green (848 citizens,
  7 L3 towers, $190k surplus, proactive grid growth, 1.2ms avg tick)
2026-08-22 19:30:46 +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