← Sander Vanhove

Crowd Cannon

A Mob Control-style playable ad: a 15–30 second slice of a game, small enough to run inside an ad and ending on an install button. Built AI-first in about two hours.

What it is

You fire a stream of units at an enemy tower. Moving ×2 and ×3 gates multiply whatever passes through them, so aiming at the gates turns a trickle into a flood. Enemy waves push back, and a BOOST ring charges up to launch a champion unit. A round lasts 15–30 seconds and always ends on an end card with a PLAY NOW button. That's the format of a playable ad: show the core loop fast, then ask for the install.

1.8 MBone self-contained HTML file
0network requests after load
4builds: web, MRAID, Meta, Google
~16–29 stime to win, depending on play

How it's built

  • Cocos Creator 3.8 and TypeScript. There are no art or audio files: everything is drawn with vector graphics and the sound effects are synthesised with WebAudio. That keeps the build tiny.
  • A cropped engine. Every engine module the game doesn't use, like physics, Spine, audio and video, is turned off. That took the release build from 11 MB to 1.8 MB.
  • One HTML file. Most ad networks only accept a single file that loads nothing from outside. A packing script inlines the whole Cocos build (scripts, data and a small loader that serves the engine's files from memory) without changing any engine code. Meta's cap is 2 MB, so the margin matters.
  • MRAID and the other networks. One build gets wrapped per network. The MRAID version (AppLovin, Unity, ironSource and others) waits for the container to be ready, pauses when the ad is off screen, and opens the store through mraid.open(). Meta and Google get their own install calls.
  • Testable without the editor. The gameplay rules don't depend on Cocos, so bots can play it in Node without the editor. They check the balance, and they check that every kind of player, including one who never touches the screen, reaches the install button.

Made AI-first

I built Crowd Cannon with Claude Code, an AI coding agent, in a single session of about two hours. I worked with it the way a tech lead works with a team: I set the direction, made the calls and reviewed the results. The agent wrote the code, ran the builds and played the game in a browser to check its own work. I didn't take its word for it, though: I verified the game myself and played it on real devices before publishing.

What I didDecided the game and its scope: a small Mob Control-style slice in Cocos Creator. Made the call to action the priority, because a playable exists to get installs. Chose to ship it as one HTML file. Verified the game and tested it on real devices, and decided when it was good enough to publish.
What the agent didThe TypeScript gameplay, the vector art and synthesised sound, the engine cropping, the single-file packer and network wrappers, and the bot tests. It also tested the builds in a real browser.

This matters for playable ads in particular. A campaign isn't one ad but many small variants of it, and AI makes each variant cheap to build. The hard part moves to deciding what to test and reading the results, which is what the next two sections are about. It also shaped the code: because the gameplay rules run without the engine, bots can play them after every change, so the AI's work gets checked automatically, not just by eye.

Three versions I'd A/B test

A playable ad lives or dies on small decisions. These are the three I'd test first. Each changes one thing, so a difference in the numbers points at that change.

Test 1

The hook in the first 3 seconds

A · TutorialA pointing hand and “Hold & drag to fire”. Nothing happens until the player touches the screen.
B · Auto-startThe cannon is already firing and a stream hits a ×3 gate, so the crowd explodes on screen before the player takes over.

Most people decide in the first seconds whether to engage or scroll past. B shows the satisfying part straight away, so I'd expect more players to interact and stay to the end card.

Test 2

Easier vs. harder gameplay

A · EasyBigger multipliers and a weaker tower. Almost everyone wins in about 15 seconds.
B · HardStronger enemy waves. Most players lose narrowly unless they aim for the gates and use BOOST.

Easy feels good and gets more people to the end card. Hard leaves a “I could have won that” feeling, which can pull in fewer but more motivated players.

Test 3

“You won” vs. “you lost” end screen

A · VictoryThe tower falls, confetti, and “You won! Keep going” above PLAY NOW.
B · So closeThe tower survives with a sliver of health, and “So close! Try again” above PLAY NOW.

Win screens reward the player. Near-miss screens create an urge to retry, and the only way to retry is to install. Which works better differs per game and audience, which is why it's worth testing rather than guessing.

The numbers I'd judge them on

Each metric looks at a later step, from someone seeing the ad to someone still playing a week after installing.

CTR

Click-through rate clicks ÷ impressions: how many people tap through to the store.

The quickest signal and good for spotting a weak hook early. But it can be inflated by accidental taps, so I wouldn't pick a winner on it alone. The game reports where each tap came from (HUD button, mid-game banner, end card) to see which placements actually work.

IPM

Installs per mille installs ÷ impressions × 1000: installs per thousand ad views.

The main number for a playable. It combines how many people tap with how many of them install once they reach the store, and ad networks use it to decide how often to show an ad. This is the metric that picks the winner.

D1/D7

Retention after install: the share of new players who open the game again 1 and 7 days later.

A guardrail. An ad that promises something the game doesn't deliver can win on IPM and still lose money because those players leave right away. A variant only wins if its IPM is higher and its retention holds up.