WorkGames & Simulation
Rustline
A first-person survival game on rails in Unreal Engine 5: build a cart, push it up an abandoned mountain line.
In build · Oct 2026 – Present · Solo: designed the game and its rail physics, directed Claude Code through the C++ and the art pipeline

- automation tests, 0 failures
- 107
- lines of C++
- 93,268
- maps built
- 9
TL;DR
- A road-trip survival game on rails: you build a small cart in your grandfather’s garage and push it, trip after trip, up an abandoned mountain railroad, clearing fallen trees, judging old trestles and fixing what breaks.
- An Unreal Engine 5.8 C++ project with a rail-physics model, a scripted Blender-to-Unreal art pipeline and 107 automation tests that pass.
- In build: the greybox line is playable; the game around it is not finished.
The problem
Most survival games are about a place. I wanted one about a route: a single line of track where every trip teaches you something about the next one, and where the risk comes from physics you can reason about, like grade, speed on worn rail and the load a trestle can take.
What I built
- Rail physics. The cart’s motion accounts for grade, battery and braking. Each stretch of track has a safe speed that drops on worn rail, in the wet and with poor wheels, and the chance of derailing rises as you exceed it and as the load grows. Trestles have their own load model. A Python balance simulator mirrors the same model so tuning can be checked outside the engine.
- A cart-building sheet. Parts fitted in the garage change weight, load limit, top speed and grade pull, and the sheet says plainly why the cart won’t roll yet.
- An art pipeline with no manual editor steps. Blender kits are generated by script, exported, imported headless into Unreal and assembled into levels by PowerShell and Python, so a map can be rebuilt from scratch with one command.
- A greybox line of about 3 km: fallen trees at set distances, a 2% hill, a stretch of worn rail with a 6 mph safe speed, a 250 m curve and a trestle over a 25 m ravine.
Key decisions
- Decision: model the physics as plain functions with a twin simulator outside the engine. Why: balance problems are cheaper to find in a script than in a play session. Trade-off: two implementations that must stay in step.
- Decision: script the whole art pipeline. Why: levels get rebuilt constantly while the design moves, and hand edits would be lost each time. Trade-off: the first run compiles shaders and fills caches, which is slow.
The hard part
Making a cart on worn rail feel dangerous without feeling random. The derail model ties risk to things a player can see and control: speed against the track’s safe speed, the wheels fitted in the garage, the weather, and the load, with the worn section placed on a descent so you have to brake early. The same model drives the balance simulator, so “how often does a careful player derail here” is a number, not a guess.
Results
- The C++ module compiles, and a full automation run passed 107 tests with 0 failures.
- 9 maps exist, from the greybox line to the lowlands, canyon and summit environments.
- Built over a few days in October 2026 by directing AI coding agents; the code lives in a local repository with no public remote yet.
What I’d do next
- Close the loop from greybox to the first full trip: a run that starts in the garage and ends at the first town.
- Playtest the derail model with people who have never seen the balance numbers.
Screens
Captures of the running software, not mock-ups.



Every number, with its source
The file, run or record each figure comes from.
| Metric | Value | Source |
|---|---|---|
| Automation tests passing, 0 failures (run of 2026-10-06) | 107 | local: Rustline/Rustline/Saved/Logs/GC_tests.log |
| Non-blank lines of C++ across 312 source files | 93,268 | local: Rustline/Rustline/Source/Rustline |
| Maps built | 9 | local: Rustline/Rustline/Content/Maps |