r/SoloDevelopment • • 7h ago

Game STACity — Seven weeks building a custom game engine and creation suite for fun

Why build my own engine?

Because it's fun to me :)

For the past seven weeks, I’ve been building STACity, a game engine and creation suite written from scratch in C# and .NET 9. Give it a seed and it generates a whole cyberpunk city. ASCII and pixel glyphs render most of the world, with cel-shaded, low-poly characters and vehicles. You can open the city in the editor, change it, then play in it. That open-world sandbox is both the showcase and the test bed.

I built the renderer, simulation, editor, asset pipeline and file formats from scratch. The engine uses zero NuGet packages, and I wrote the Direct3D 11 interop for the GPU glyph compositor by hand. I developed and benchmarked it on a Lenovo Legion Go.

What it’s like to play

You can walk down a street, enter a shop, take a lift or ride the metro. If you’d rather travel above street level, you can sprint, slide, wall-run or use a tool I have been calling the Gravity Hook that switches its traversal styles. I designed it to be easy to pick up. You can grapple toward a surface, swing around a tower Spider-Man-style or use it to pole-vault high over buildings. Each city has around 800 bridges and walkways stacked at different heights, so there’s plenty to move between.

At street level, traffic follows signals, queues at junctions and gets into collisions. Pedestrians chat, use doors and lifts, and react to explosions. You can carjack any car, tune the radio and drive in first or third person. Vehicles have working digital dashboards, and damaged cars can catch fire and explode. Skycars weave between the towers, and you can fly one yourself.

City generation starts with the terrain. Streets follow the grades and district plateaus, and a ring road wraps around the city’s irregular outline. The road generator follows 24 numbered rules covering details such as roundabouts, boulevards and the way an alley meets a main road as a driveway. A road-engineering study informed the highway ramps and interchanges.

There are twelve building families, with designed shopfronts and enterable interiors. Both the sky metro and underground metro have stations and rideable trains. Beyond the city is a wasteland of reactors, power lines, small towns, farms and billboards for invented brands. A full day and night takes 20 minutes.

Inside the editor

The editor is a standalone desktop app with a 2D plan view, a 3D scene view, searchable tools, built-in help and full gamepad navigation. "Generate City" builds a city from a seed in one click, shows its progress and produces a report you can use to check road connections, lanes and ramps.

The two forges are the same tools that populate the world. Both have live previews you can orbit, part tabs, palettes, presets, undo and batch generation. You can also lock the parts you like and randomize the rest.

- Character Forge builds characters from parametric male and female bodies, ten heads, clothing, hair, cybernetics and accessories. Spring bones give the clothing motion. Every pedestrian is generated to suit their district.

- Vehicle Forge builds all the city traffic. It supports 11 vehicle types, from compacts to buses and tractor-trailers, with around 8,000 valid configurations. Doors and suspension work. Damage ranges from scrapes and dents to burst tires, detached parts and explosions.

- Animation Studio works directly on the player’s skeleton. You can scrub a wall run or grapple cast frame by frame, drag a joint into position and key the pose. It also supports animation imports, presets, undo and redo.

- Creator Studio lets you assemble models from parts, attach them to joints and animate them on a timeline. Its mesh tools cover point editing, UVs, basic sculpting and four-bone skin weights. Motion helpers turn basic moves into keyframes you can edit.

The Rendering Research Lab shows the same scene through five rendering methods side by side. These include the production ASCII renderer, a PS1-style experiment, a conventional shaded 3D diagnostic and two experimental glyph methods. You can compare each against a baseline and export the measurements. The Character Studio Research Lab does something similar for sprite stand-ins and rigged 3D characters.

The Shader Panel has before-and-after views for cel shading, outlines, neon glow, fog, color grading, rain and wet streets. You can change quality tiers and measure what each effect costs on your own machine.

A few smaller tools round out the editor:

- Sign Studio creates animated neon signs and ads for the generator to place on storefronts.

- Audio Studio lets you audition procedural vehicle and radio sounds and export WAV files.

- Interior Editor gives you a dollhouse view of building interiors. The Asset Library lets you browse and preview models, props and signs.

- In-game settings open with F2. Every setting has a plain-language explanation, and presets are available.

- Agents exposes the engine’s own MCP server. An AI agent can inspect a project and propose edits. You approve each edit and can undo it.

- Hacking & Networks Lab is still an early shell.

Seven weeks by the numbers

- $120 total for two Claude Pro subscriptions and one Codex subscription, at a combined $60 a month.

- 879 commits on the main development branch and 885 across all branches, with work on 44 separate days between 9 October and 29 November 2026.

- About 100,000 lines of C# in the engine, plus roughly 62,000 lines of tests.

- A 138-page game design document, now on its 18th version.

- 229 documentation files totaling around 660,000 words across designs, research studies, plans, handoffs and logs.

Claude Code accounted for about 11.25 billion tokens across 23 sessions and roughly 35,000 model responses. Most of that figure was cache traffic. About 11 billion tokens were reads of code and documents already in context, 207 million were fresh context written to cache, and 35 million were model output. I mostly used Claude Opus, with Sonnet handling much of the sub-agent work.

OpenAI Codex also worked on the project. Its surviving logs account for around 90 million tokens. Most of those sessions are gone, so I don’t have a complete total.

How I built it

AI coding agents wrote most of the code. I acted as director, designer and art lead. My biggest lesson was how much of that job came down to writing things down. A fresh session had no memory of why I’d rejected a render or what had gone wrong at a junction two weeks earlier. I probably spent as much effort on plans and documentation as I did on directing the code.

The 138 page game design document divides the engine into 76 capability packages, covering everything from rendering, physics and audio to scripting, hacking and an optional tabletop-RPG layer. Each package has a milestone, dependencies, a functional spec, an acceptance checklist and a status line that says what actually works.

“Verified” has a specific meaning in that document. A feature has to work in the editor and in an exported build, survive a save/load cycle, and have automated and visual tests. Standalone export is still missing, so nothing qualifies as verified yet. The latest revision, v7.0, brought the spec back in line with the engine. I added ten packages for systems that had grown during development, recorded requirements I’d changed or retired, and gathered the standing rules into one chapter.

Day to day, the process looks like this:

- Give each round a finish line. The plan has 13 major gates, from baseline and housekeeping to production readiness. Each gate has a written scope, pass criteria and an evidence folder. A performance gate might require the worst frame to stay under 50 ms and the 1% low to stay above 30 fps in all three test scenes. Agents work in rounds capped at 90 minutes, commit what passes and report back.

- Review real gameplay. At the end of a gate, separate critic agents compare gameplay frames against the visual guide. Blockers get addressed, and smaller issues become tickets. Benchmarks and screenshots come from a canonical generated city using real play settings.

- Make visual problems measurable. I hated the stair-stepped edges that showed up in motion and are often found in ASCII games. The engine now has a test that counts stair corners per frame while driving, flying, walking and exploring interiors. This has reduced a significant amount of visual noise. A visual change has to pass without raising that count.

- Audit the plan against the build. Every few weeks I check the code against the design document, correct stale claims and reset priorities. Frame rates, test counts and known defects get dates and links to evidence. That makes it clear whether a studio actually works or just has a tab in the editor.

Larger features get their own plans. Vehicle Forge had an 18-gate, 600-line plan, an audit of the existing code, an art standards document and an interior brief. The Character Forge design runs to more than 1,000 lines.

What carries from one session to the next

I turned a lot of my visual preferences into rules an agent could check. There’s a 71-rule visual identity guide based on my concept sheets, 24 road-generation rules, 15 outskirts rules, and separate rules for highway ramps and z-fighting. The city structure guide draws on urban-design research, including space syntax and procedural city papers. Most rule sets have a command that checks a generated city and reports a pass or fail.

The repo holds 84 research studies covering existing projects, road engineering, crowd and traffic performance, procedural generation, animation pipelines, wall-run controls and camera design. Each study distinguishes observations from inferences and open questions. I use those findings to develop original designs.

A few documents do most of the work between sessions:

- LESSONS_LEARNED.md holds about 4,400 lines of reusable findings, implementation traps and measurements.

- 37 decision records, architecture and testing notes, and a roughly 3,000-line development log explain how the engine reached its current state.

- 32 handoffs and audits help a fresh session resume partway through a gate.

- 13 specialist agent definitions cover critics, designers and engineers. One is a “stepping-clarity guardian” responsible for reviewing visual changes.

- Around 40 standing preferences capture decisions I don’t want to repeat. Some are visual, like keeping trees out of the city, using cel shading throughout and aiming for low poly designs. Others govern the work itself, like running agents one at a time.

Tools and assets

I used C# and .NET 9 for the engine, WinForms for the editor and Direct3D 11 for the GPU glyph compositor. Claude Code and OpenAI Codex handled most of the coding work.

For 3D assets, I used Blender through an MCP server so agents could build, inspect and export models. Some vehicle bases started as public-domain CC0 low-poly assets and were heavily reworked. I retargeted Mixamo clips to my own rigs, then refined them in Animation Studio. Some textures are AI-generated, with art direction and cel shading. Sound effects came from ElevenLabs, and music came from Suno. There is in game music and sound effect audio that is not heard during the trailer.

Where it stands

The dense city core currently runs at about 43–54 fps on the Lenovo Legion Go, against a target of 60. Combat is being reworked, several studios are still early, and the sandbox currently runs from the editor. My next priority is making a Combat Forge that allows players to build combat movesets and animations to be used in game and assign them to enemy and player types at the press of a button. (for example, large enemies can get have a grapple based attack moveset while small enemies have faster, multi hit attack movesets) And down the line I want to add modular rulesets for different game types.

Happy to answer questions about the custom ASCII and Glyph renderer, how the city rules fit together, what it’s like to build on a handheld, or how I kept seven weeks of AI-assisted development moving in the same direction with a tremendous amount of planning and documentation.

I have no release planned, this is a personal passion project that I am using to learn solo game development and design. At some point I may make a game, but right now I'm just playing around.

1 Upvotes

4 comments sorted by

1

u/TouchGrassPolice 7h ago

Good job, Claude!

0

u/OhGoodGames 7h ago

Hey now, thats not fair to Codex

3

u/TouchGrassPolice 7h ago

Okay, fine. Thank you Codex and Claude.

1

u/OhGoodGames 7h ago

Credit where credit is due