A Godot city-builder prototype where a truss solver decides which buildings survive thirty years of storms, code changes and neglect.
At a glance
Outcome:TRUSS: Time-Resolved Urban Structural Simulator is a city-builder in which every beam, brace and footing is a real member solved under real loads. You are the mayor and building authority of a district through thirty years of storms, code changes and deferred maintenance.
Status: Pre-alpha prototype. Six scenarios run in the exported Linux desktop build, from the single storefront of Open for Business to the thirty-year Long Campaign; itch.io demo first, then Steam, targeting 2027.
Role: Solo. Defined the product decisions, system boundaries, solver specification and contracts; reviewed AI-assisted implementation.
Stack & libraries: Godot 4.6.3, .NET 8, a C# solver and domain core, GDScript for interaction, and a Nix flake pinning the toolchain.
Validation: Solver tests compare results with hand-calculated answers for simple frames. Scenario tests check that the defective storefront fails between 30 and 40 m/s and both repairs survive 50 m/s, and whole thirty-year campaigns run without a screen and come out the same every time.
TRUSS is a city-builder, like RollerCoaster Tycoon crossed with Kerbal Space Program. Every beam, brace and footing in the district is a real structural part with real dimensions. When the ground shakes or the season’s storm arrives, each part either holds its load or fails.
The Open for Business storefront: a steel frame with timber framing and brick around it. You inspect it and restore its load path.
You play the mayor. You write the building code in a visual block-based editor and set the inspection budget. Owners and contractors then build to your code with their own goals and budgets. Contractors use the same parts and the same structural calculations you do.
The Long Campaign runs thirty years as six seasons, and the building code moves through three versions. Buildings lose strength as they age, and each owner decides whether to pay for upkeep. After the first season’s storm in one run, the building whose owner paid for every maintenance round is at full condition. Its neighbor, whose owner skipped all five, is down to two thirds.
After each storm, the debrief scores every building. A forensic report traces each collapse in five steps: the code rule that governed it, its design, its inspections, its condition and the outcome.
You can also walk into a building in first person as an inspector. In Open for Business, the first scenario, the tenant of a two-story steel storefront demanded a clear shopfront. The contractor left the braces out of one ground-floor bay and hid the gap behind a finish panel. Lifting the panel shows empty brace plates and unused bolt holes. In the wind test the frame holds at 35 m/s and fails at 40 m/s.
The wind test report. The frame holds at 35 m/s and fails at 40 m/s, where member 60 reaches a utilization of 1.083. Members are colored by their utilization at the last step held.
You repair the frame in a drafting editor, and two repairs pass the test at 50 m/s. Restoring the braces is cheaper and faster but blocks the shopfront. A braced frame built about 2 m outside the front costs more and keeps the opening clear.
The latest build fills the screen with the city, every standing building drawn in 3D at its site and the panels laid over it. A district map shades each parcel by condition and marks overdue maintenance. Repair works in Open for Business and Boomtown, and the per-building wind test in Open for Business.
The thirty-year Long Campaign runs: the building code changes across eras, buildings age, and owners choose whether to pay for upkeep, demolish or rebuild.