I put a planet 195,800 units from where it should be
Starwright is a game about building a ship out of parts and then finding out whether you built it well. At the start of August it was a folder full of design documents. By the end of the month you could fly it.
The first milestone was deliberately boring: a deterministic simulation core. Seeded RNG, thrust and damping, a tractor beam, a mining laser, asteroids you can hit. Plus a hard rule, enforced by a grep in CI, that nothing in the simulation layer is allowed to reach into the view layer. That rule has paid for itself several times already — a sim you can run headless is a sim you can test, and everything after this depended on it.
Then, in order: the ship grid, where parts have to connect properly and engines have to be at the back. A refinery economy at 2:1, and a bay where you dock, fit and fabricate. Versioned saves with a migration chain I’m not allowed to edit afterwards, which went from v2 to v12 in one month, every step of which has to keep working forever. And positional combat — turrets that fire, projectiles with a hard range, and a seeded hundred-run balance gate. The starter build beats the skirmisher 72 times out of 100, which is about where I wanted it.
Twelve planets, none of them nice
The solar system went in mid-month. Twelve planets around one sun, none of them habitable, moons you can warp to, an asteroid belt ringing the star, and drifting rocks big enough to be worth mining properly.
Ore is the part I enjoyed most. There are 24 of them, grouped the way real geochemistry groups them — platinum-group metals, precious metals, carbonaceous volatiles — and smelting feeds a trace-element buffer that sticks around. So what you refine leaves a residue that follows you, and what you get out later depends on what you’ve been putting in. Small thing, but it gives the economy a memory.
The belt collapsed in on itself
Two bugs from the build-out worth keeping.
The asteroid belt went through a phase where it collapsed inward and pinned my ship in place. You’d fly in and just stop, held still by rocks busy crushing each other. Fixed the same day, and good fun to watch.
The better one: I ended up with a planet 195,800 units from where it was supposed to be. The cause was a hardcoded 200000 standing in for the home body’s position instead of reading the actual value, which is zero. So the number wasn’t off by a rounding error or a sign flip. It was off by the entire value of the constant, because the constant was a guess about something the code already knew.
I keep running into that. The calculation isn’t wrong — the calculation is fine. Someone put a literal where a lookup belonged, and the only thing holding it together was that the two numbers happened to match on the day it was written.
A UI made of parts
The last week went on the thing I’d been putting off. Every panel in the game was drawn with raw draw calls, which is quick to write and miserable to change. That became nine reusable components — stat bars, dialog panels, annunciator tiles and the rest — plus an actual game flow: splash, menu, pause, settings, save slots. Built test-first in fourteen tracked steps, because UI is where I’m most tempted to skip that.
The mistake I didn’t know I’d made
On August 25th I upgraded Godot from 4.4 to 4.7 and the test framework from 5.1.1 to 6.2.1, because I wanted abstract class support. I updated the project file. I updated the addon.
I didn’t update the version pinned in the CI workflow.
That cost me seven weeks and I didn’t find out until October. It gets its own post, because what it did to the build is more interesting than the mistake.
358 commits, 212 tests, and a game I could sit down and play by the end of it. Starwright is still in development and there’s nothing to buy — but it stopped being a document this month, which is the hard part.
— Bruno