← All work

Personal project

GameFactory: an AI pipeline that builds games

A system I built that turns a game idea into a spec and small tasks, then directs a team of AI agents to build and test them in parallel. It has made two games so far, both playable in your browser.

Idea to first playable game in 2 to 4 hours of active work

Diagram of the GameFactory pipeline: idea, spec and small tasks, AI agents building in parallel, tests gating every merge, a promotion step on my approval before the build goes live on the web and itch.io, and feedback from both playtests and live players looping back into the spec. Below it, screenshots of two games built with it, Cosmic Invaders and ApexDrake.

Games built with GameFactory

ApexDrake: a full-grown red dragon breathes fire across a town square while villagers and soldiers swarm around it.

ApexDrake

A survivor-like where you grow a dragon from hatchling to ancient, until the city that used to hunt you is lunch. Pick a dragon lineage, evolve your powers, and bank gold between runs to come back stronger, across two maps.

98 tasks · 1,006 tests · first playable in 4.3 hours of active work

Cosmic Invaders: the player's ship fights a red mothership over a city skyline at night.

Cosmic Invaders

A Space Invaders-style arcade game with three acts, a boss at the end of each one, power-ups, and generated music.

61 tasks · 443 tests · first playable in 2.2 hours of active work

Why I built it

I wanted to know how much real software I could get out of AI agents if I gave them the kind of process a good engineering team uses: a clear spec, small tasks, tests on everything, and a review before anything gets merged. Games are a tough test for that. They need code, art, sound, and a lot of tuning before they’re any fun.

How it works

  • It starts with a conversation. I describe the game, the system interviews me about it, and my answers become a written spec.
  • The spec gets broken into small tasks. Each task owns its own files and comes with its own automated tests, so several can be worked on at once without stepping on each other.
  • AI agents build in parallel. Each agent works on its task in its own copy of the project. Nothing gets merged until the full test suite passes.
  • A bot plays the game. An autoplay bot runs the game on its own, so the checks cover how it actually plays and not just whether the code runs. It’s also how balance changes get measured instead of guessed.
  • Playtest feedback goes straight into the next round. Every build goes to a preview link first. Players can send feedback from the pause menu, it lands as a ticket, and that becomes the next set of tasks.
  • Nothing goes live until I say so. When a preview build is ready, I promote it. That exact build goes to the live site and to itch.io, with release notes written from the tasks and fixes that went into it. Players on the live game can send feedback from the same pause-menu button, so it feeds the next round too.

It also keeps its own score. The pipeline measures every game from its git history: how long each step took, where the time went, and what to fix in the process next.

What it’s done so far

Two games are live on the web and published on itch.io, and each one made the pipeline better for the next. Cosmic Invaders took about 5 hours of web, deploy, and release work to set up. ApexDrake reused all of it in a little over an hour. ApexDrake also added an art pipeline that turns AI-generated 3D models into pixel-art sprites, which the next game gets for free. It’s had five live releases in its first eight days, most of them shaped by feedback players sent from inside the game.

I’m already planning a third game with it.

Why it matters for clients

The games are the fun part, but the real work is the system: taking a fuzzy idea, writing down exactly what we’re building, breaking it into pieces small enough to check, and testing every piece automatically. That’s the same approach I’d bring to a client project, whether it’s an internal tool or an automation.

Want to talk it through?

Book a free 30-minute call. Tell me what's eating up your team's time, and I'll give you an honest answer about whether I can help.