BetaGame

Urban Foundry

An isometric city builder for the browser – lay roads, zone land and run power, water, services and a budget while the city builds itself.

Opens at bsite.se/play/urban-foundry/

An isometric town of about 5,300 residents seen from above – brick apartment blocks, a town hall on a green square, towers to the north-east and a toolbar down the left edge.

Maturity

  1. Idea(completed)
  2. Prototype(completed)
  3. Alpha(completed)
  4. Beta(current stage)
  5. Promoted

About the project

Urban Foundry is a city-building simulation in the classic mould: you do not place houses, you lay out roads, zones and utilities, and the city builds itself when the conditions are right. Homes need jobs within reach, shops need customers, industry needs workers and all of them need power, water and a road. Raise taxes too far or let a district go without a school and the buildings there decline and are eventually abandoned.

One tick is one game day. Demand is recalculated daily, while the heavier passes – utility networks, service coverage, pollution, traffic, land value, occupancy and happiness – each run on their own day of the week, which keeps a simulated day under two milliseconds even on the largest map. Everything random comes from one seeded generator stored in the save, so the same seed and the same actions give the same city.

The simulation never touches Phaser or the DOM. The map is drawn by Phaser 4, the interface is ordinary HTML and CSS, and both talk to the same session object. That is what lets a scripted mayor play thirty years in a few seconds to catch runaway economies and dead cities before a person has to.

Current state

What works

  • Seeded maps in six terrain presets and four sizes, eight road types and ten zone types that grow by themselves through up to five levels
  • Power and water with capacity, education, health, police, fire, waste, parks and transit coverage, commute traffic, land value, pollution and crime
  • A monthly budget with three tax rates, department funding, policies and loans – every line traceable to something on the map
  • Milestones that unlock buildings, eight kinds of optional disasters, advisors, statistics, twelve data overlays and districts
  • Classic mode in three difficulties, a sandbox, four challenges and a ten-step tutorial
  • Saves on the device with export and import, day and night, English and Swedish, installable and playable offline
  • 112 generated building sprites and ElevenLabs sound; the simulation is plain TypeScript, tested in Node with 25-year runs, plus 16 browser tests

What isn’t finished

  • The balance is tuned against a rule-based test mayor – no human has played a city through yet
  • No railways or trams, no terrain editing, no building rotation, no pedestrians and no weather
  • Ore deposits are drawn on the map but have no effect
  • Phones work for inspecting and light building; long sessions are meant for a desktop or tablet
  • Late-game cities run a comfortable surplus, so the hard part ends too early

Why is this project on BSite?

  • Early prototype

Urban Foundry is broad but one day old, and a city builder stands or falls on its economy. Whether growth feels earned, whether the budget stays tense and whether the advisors explain enough can only be settled by people playing for an hour or more, so it starts in the lab. When the balance has been confirmed it is ready for EverydayGames.

Screenshots

  • The town of Lindholm in January 2022 with cars on the streets, a stadium, a hospital and industry on the eastern edge; the top bar shows population, funds and 58 percent happiness.
  • The same town at night, darkened to blue with lit windows and street glow, and the minimap in the lower right corner.
  • The land value overlay – the map tinted from purple in the old housing blocks to bright green around the central park, with a legend from low to high.
  • The city budget panel with a ledger of income and spending per department, three tax sliders at nine percent and a loans box.

Development log

  1. Version 0.1.0 – simulation, renderer, interface, art, sound, saves, challenges, guides and tests built in one session and published in the lab at bsite.se/play/urban-foundry/.