Building Mobile Games with Coding Agents: What Worked
A solo developer on shipping three Android games with coding agents: rules-first code, balance tuned with bots, tests, emulator checks and store screenshots.
In this article
I build the ProgrammerCat games alone, with coding agents doing most of the typing. Three games came out of it: Tile Bash and Smashfall are on Google Play, and Wallpup is in review. Here is the setup, with the numbers I have.
Rules first, screens second
The most useful decision was to put every game rule in a pure C# assembly with no engine references. Tile Bash’s Core holds the board, the juice meter, the level generator and a simple bot. The views only render that state and forward input. A rule has a test in Core before a view uses it.
An agent can change a rule in pure code and check it in seconds, without a scene. A rule inside a screen can only be checked by running the game.
Wallpup went one step further. I wrote a reference model in JavaScript first, so I could run thousands of simulated runs in seconds with Node. The C# Core was then ported from that file, class by class. The model writes golden files, and the C# tests read them. The browser prototype is also in the loop: the model matches it exactly on 60 of 60 seeds, including every generated obstacle and the perfect bot’s run.
One honest caveat: the first C# port was written and reviewed before it was compiled. To check it, I had a line-by-line JavaScript copy of the C# written and compared it to the model. It matched on every golden file, 200 generated worlds in three modes and 500 runs per bot. My notes call that evidence, not a compile. The first import into Unity then showed no compile error.
Balance tuned with bots
I have no playtest group, so bots stand in for players. They are crude, but they give a number, and a number can be argued with.
Wallpup. The first real player report came from me: I played the build on a phone and did not die before 5,000 points in the first runs. I had a skilled bot that played like a practised player. On the original course it died first at a median of 1,010 m after 121 seconds, and 46.5 percent of its runs passed 5,000 points. That matched my report, so the course was too easy.
I retuned the course. Over 1,000 runs per profile on the new one:
- The skilled bot’s median first death is 409 m (53 seconds), with a first quarter at 236 m and a third quarter at 546 m. 7.3 percent of its runs reach 5,000 points.
- The novice bot’s median is 114 m, or 15.3 seconds.
- A bot that never taps dies at or before the first pit on 2,000 of 2,000 seeds. Before I made every pit deadly, that no-input bot crossed 229 gaps in 500 runs, because a dog that runs into a short pit could climb out of it.
Fairness gets its own bot. The perfect bot sees the whole world and reaches 2,500 m on 2,000 of 2,000 seeds. A reaction bot makes the same decisions but only from what is on screen, 0.45 seconds late, and reaches 1,500 m on 1,000 of 1,000 seeds. Each time it died, it had found a hazard that came on screen too late for a human, and I fixed the generator.
The limit: the novice bot is a guess about beginners. No real beginner has been measured. The next data I want is from people who have never played.
Smashfall. For runs, I set targets and measured an average bot over 600 seeds, with no continues and no power balls. It reaches board 5 in 82 percent of runs, board 10 in 41 percent, and clears board 15 in 19 percent. My targets were 80, 45 and 15. My first boss hit points were far too high: the first plan stopped 97 percent of runs at board 5.
Tile Bash. A greedy bot that spends the juice meter, never undoes and plans nothing wins 90, 75, 67, 48, 43, 35, 31 and 25 percent of levels, in bands of 10 levels. People should do better, so these numbers are provisional. The bot also caught one design mistake: with 10 tile kinds against a 7-slot tray, its win rate on the hardest levels halved. That reads as luck to a player, so kinds stop at 9.
Tests
Counts from my last runs:
- Smashfall: 265 EditMode tests and 114 PlayMode tests, all passing.
- Wallpup: 203 in the fast loop, 219 Unity EditMode tests with 3 ignored, and 35 PlayMode tests, all passing.
The PlayMode tests drive the real game view with input. Tile Bash, for example, replays level 1’s solution to a win through a virtual mouse.
Emulator checks
Every Android project has its own emulator, named after the project. A build is not done when the tests pass. I install the APK and look at it: the title screen, a run, the result screen, the shop. Several visual problems only showed up there, such as a candy-themed board that rendered grey-brown in Smashfall until I gave each theme its own backing colour.
Emulators, Unity batch runs and builds all run under a timeout, and I shut each emulator down when its check ends.
Store screenshots made by tests
I do not take store screenshots by hand. A PlayMode test renders them. Smashfall’s StoreShots test writes the eight phone screenshots and picks levels so that the first screen shows five or six brick colours. Tile Bash has a similar screenshot test. For Wallpup, I capture the shots from a test build on the emulator with a bot playing. One detail I learned: Google Play refuses phone screenshots whose long side is more than twice the short side, so 1080x2400 does not work and 1080x1920 does.
Scripted screenshots can be repeated whenever the art or the logo changes.
What I do not delegate
I hand bulk, well-specified coding to cheaper models, and I review the diff and run the tests myself. I never trust a worker’s claim that the tests pass. Design, hard debugging, anything that touches security or money, and final verification stay with me and the main agent.
Visual judgement is the weak point. For that I render screenshots into one contact sheet and ask a second model for a review, then check its claims against the code before I act on them.
Where this leaves things
I do not have retention data, and the Wallpup numbers above come from bots, not people. My advice is short: keep the rules in pure code, make bots earn their keep, and check the build on a device or emulator.
Try the games if you are curious: Tile Bash, Smashfall, and Wallpup when it clears review.