You've seen the ad. A tiny blue soldier runs up a bridge, grabs +1, +1, +1 until he's an army, frees a hero screaming "HELP!" from a cage and melts a giant with pink lasers. Then you install it and get a completely different game.
So I gave that ad to Claude Opus 5.5 and told it to build the real one. It worked for 97 minutes over two rounds, spent $37.76 in tokens, wrote almost 4,000 lines of code, and never asked me a single question. The result is Headcount Heroes, and you can play it right now, free, on your phone or computer.
- Opus working, over two rounds
- 97 min
- in tokens, at API prices
- $37.76
- lines of code in the finished game
- 3,968
- lines of code written by me
- 0
How I know this. I'm Nikandr Surkov, and I make videos about new AI models and AI experiments on YouTube. I ran this build for one of them. Every number here comes from the session logs, and every clip is a real recording of the game. Headcount Heroes is an original game; it isn't affiliated with Last War: Survival or the company behind it.
The ad, and the game you actually get
The ad is for Last War: Survival, published by FUNFLY (the studio is often called First Fun) and released on the US App Store on August 2, 2023. What you get after installing is a 4X strategy game: you upgrade buildings, level up heroes and join an alliance.
The shooter from the ad does exist, briefly. Naavik's analysis found that over 60% of the first four to five minutes is that minigame, before the base builder takes over. And the ad works: Naavik, citing Sensor Tower data, reported that ads built on the shooter make up more than half of Last War's ad impressions. Last War's own Japanese account on X posted versions with 15.1 million and 9.76 million views.
The game behind them made about $3.47 billion from in-app purchases between launch and July 2026, according to AppMagic data published by Udonis (net of store fees). Last War even hired Antony Starr, Homelander from The Boys, for its 2024 ads, where he says the game is going viral "because the developers made a real game based off the fake game in the ads."
So, is there a game like the Last War ad? A little of one at the start of Last War, a handful of indie remakes, and now this one, which plays the whole ad from start to finish in a browser.
Who built it before me
On November 4, 2026, the UK's Advertising Standards Authority banned a batch of mobile game ads from King, Scopely, the publisher of Dark War: Survival and Vistrex. It also said King's small "Not actual gameplay" label "was likely to contradict, rather than clarify" what players would expect. Last War wasn't on that list.
People have been building the game from the ads themselves for a while:
- The Greatest Developer, a solo developer on YouTube, made Real War: Not Fake by hand. He says Apple and Google first rejected it for looking like one of the fake games. By the numbers in his own video, it brought in $2,426,756 by day 347, with $1,577,353 spent on ads.
- noclipepe had Claude Fable 5.2 build it and posted the result on November 16, 2026: 1 hour 10 minutes, 2,980 lines of code, $29.52 in tokens. He later put the game on his site, but not the prompt or the code. Under his post, someone wrote: "I tried this (with opus 5.5) and my results were pretty lackluster lol."
- Built by Mad had Claude Opus 5.5 build a version called Bridge Squad in a short video on October 4, 2026.
So I'm not the first. What I wanted to know was what Opus does with the right tools, and I wanted every step on the record.
The setup: one prompt, 12 frames and real tools
Opus 5.5 ran in Claude Code at maximum effort, on its own, in a folder with a starter kit. It got:
- One prompt with every beat of the ad, the look to aim for, and the rules (below).
- Twelve frames cut from the ad, in time order, plus a short description of it.
- three.js r187, the free 3D engine behind most browser games, with its WebGPU and WebGL builds and every official add-on.
- Free models and sounds, but only from a short list of sites (Poly Pizza, Poly Haven, Kenney, OpenGameArt, GitHub and a few others), and only data files: models, textures and sounds, never code.
- Eyes: a locked, offline browser with a GPU that runs the game and sends back screenshots. Opus wrote its own test scripts (drag here, wait two seconds, take a screenshot) and read the pictures.
I didn't write a line of code. My job was to play it and complain. This is the prompt, word for word (I shortened the local tool paths):
You know those mobile game ads everybody has seen: a tiny blue soldier runs up a bridge, runs over "+1" tiles until he is an army, frees a hero from a cage, fires pink lasers into a giant with an HP bar, and a red horde charges at him. You tap install and the game is something else entirely. The game from the ad doesn't exist. Your job is to build it for real, as a browser game in three.js, and make it look as good as the ad.
Start by opening everything in reference/ with Read: post.txt describes the ad, and ad-01 ... ad-12 are frames from one of these ads in time order.
WHAT THE GAME DOES (one level, about 60-90 seconds, every beat working)
1. Run: the squad runs up a long bridge over the sea on its own. Drag (mouse or touch) left/right to steer; A/D and arrow keys also work. Every soldier is a real little animated character, the crowd packs into a blob that grows and shrinks, and its count floats above it.
2. Gates and tiles: blue gates add or multiply (+8, x2), red ones take away (-10, /2). A lane of "+1" tiles along one edge, each one adds a soldier, later "+99" ones. Some gates can be shot to raise their number before you run through.
3. The horde: a huge red horde (hundreds) charges down the bridge. The squad auto-fires at whatever is ahead; enemies drop, numbers pop, and where the crowds touch they cancel out one for one.
4. The caged hero: a hero in a cage on a side platform shouts "HELP!". Shoot the cage open and he joins the squad with a big weapon.
5. Barrels and blocks with numbers: shoot them down to zero for a reward: ATK +150% (the bullets turn into pink lasers), fire rate x2, +soldiers, a "x999" moment.
6. The boss: a giant at the end with a real HP bar, slamming the bridge and crushing soldiers. Melt him before he reaches you.
7. End: VICTORY with stars, or DEFEATED with Retry. Ad-style captions are welcome ("HELP!", "ONLY 1% PASS THIS LEVEL", big pop-up numbers).
THE LOOK
It must look like the ad: a glossy, bright, saturated mobile-game look, a tilted top-down camera, a clean bridge over blue sea, chunky readable numbers on everything, and lots of juice (hit flashes, damage numbers, particles, screen shake, a slow-mo at big moments, punchy sounds). Portrait first (a phone screen, 9:16) and it must also work in landscape. Smooth with hundreds of characters on screen.
YOUR OWN GAME (hard rule)
Same genre and mechanics as the ad, but your own game: your own name and logo, your own characters, your own UI. No names, logos, characters or art from any real game or ad.
WHAT YOU HAVE
- game/ is the web game; game/index.html is the entry point. three.js r187 is in game/vendor/: the WebGL and WebGPU builds, TSL, and every official addon in game/vendor/addons/ (loaders, post-processing, TSL effects, environments). game/vendor/README.txt has the import map. Use the best current three.js approach as you judge it: WebGPURenderer with TSL node materials and its post-processing works in our test browser (RTX 5090, with the WebGL2 fallback built in), instancing or batching for the crowds, GPU-side animation. Your call.
- You don't have to make everything from scratch. Use good existing free assets wherever they make the game look better: animated CC0 characters (Quaternius, KayKit, Kenney and others on Poly Pizza), Poly Haven HDRIs and textures, ambientCG materials, the three.js addons and shaders. Find them and their direct file links with:
node tools/asset-links.mjs --help
and download only with:
node tools/fetch-asset.mjs "<https url>" downloads/<name.ext> [--extract]
Data files only (models, textures, HDRIs, sounds, and zips of those), into downloads/; copy what you use into game/assets/. Poly Haven, ambientCG, threejs.org, GitHub, jsDelivr, Kenney, Poly Pizza, OpenGameArt and Khronos download at once; another host waits for a human reviewer. Only assets that are fine in a public YouTube video: CC0, CC-BY (credit it) or MIT-style. Nothing behind a login, nothing paid, no ripped game assets.
- Blender, to inspect and convert models (our own script runs; nothing inside the file runs):
node tools/convert-model.mjs downloads/<file> --list
node tools/convert-model.mjs downloads/<file> game/assets/<name>.glb [--only "ObjA,ObjB"]
- Eyes: see the game in a real browser with a GPU (offline, it serves only game/). Write a steps file, for example shots/run.json:
[{"wait":2500},{"shot":"start"},{"move":[0.5,0.7]},{"mouse":"left","down":true},{"move":[0.3,0.7],"ms":800},{"shot":"left"},{"mouse":"left","down":false},{"wait":3000},{"shot":"later"}]
then run: node tools/look.mjs shots/run.json --name run --size 540x960
It prints the page's console output and the screenshot paths. Open the PNGs with Read and compare them with the reference frames. Look often, and fix what looks wrong.
- Bash: one simple command per call, with no pipes, redirects, &&, ; or $, forward slashes in paths, and only inside this folder. ls, cat, mkdir, cp, mv and rm work on workspace paths. Any other script you want to run (node, python, Blender) goes to a human reviewer first and may wait, so do the work in the game itself where you can.
FOR OUR RECORDING
- game/index.html?demo=1 plays the whole level on its own like a good player (steers into the good gates, frees the hero, wins), so we can record it. ?demo=fail plays it badly and loses to the boss, like the ads do.
- ?start=<section> jumps straight to a section (for example tiles, hero, horde, barrels, boss).
- window.__game exposes plain state for our recorder: the squad count, the section, the boss HP, won/lost.
- The game runs from game/ alone, offline. No network requests at runtime.
RULES
- Do the whole job on your own. Don't ask me anything and don't wait for my approval; make every decision yourself.
- No clock, but don't overbuild: one polished level that hits every beat above and looks like the ad beats a big unfinished one. Stop when it looks and plays like the ad.
- At the end, write game/README.md: the game's name, what you built, the controls, the URL options, and every asset with its source page and licence.Three parts of it mattered most. The frames gave Opus something concrete to compare against. The screenshot tool let it check its own work instead of guessing. And the autopilot modes (?demo=1 to play well, ?demo=fail to lose) let both of us replay the level the same way every time. Every clip in this article is a real recording of the game, made in that locked browser in full HD.
Minute by minute: how Opus built it
Round one took 74.8 minutes. Here's what happened, with Opus's own words from the log:
| Time | What happened | Opus said |
|---|---|---|
| 0:00–3:52 | Read the brief and studied all 12 frames, then checked the three.js APIs it planned to use | "I've studied all 12 reference frames and the brief." |
| 4:00–6:33 | Went shopping for free 3D models | The soldier is "chunky with a round helmet — a great match for the ad's look" |
| 8:15–9:15 | Checked that its game name wasn't taken | "'Headcount Heroes' looks unused — I'll go with that name." |
| 9:40–11:10 | Font and some sound files weren't allowed, so it worked around them | It used heavy system fonts and made the missing sounds in code |
| 16:57–22:34 | Wrote the renderer, the crowd animation baker and the bridge, then tested the crowds alone | "VAT crowds render on the GPU (bake: ~180 ms)." |
| 22:56–37:54 | Wrote the glow effects, sounds, particles, interface, crowd logic, level, hero, boss and rules | The main game file came out at 1,021 lines in one go |
| 38:23 | Played the full game for the first time | "The game runs end-to-end: gates, +1 tiles, the caged hero with 'HELP!!', count badge, bullets." |
| 38:47–58:55 | Played, looked, fixed: crashes, timing, framing, balance | "The airstrike killed 72% and lasers finished the rest before the front rows arrived." |
| 61:09–65:30 | Checked landscape, rewrote the sea, measured speed | "Locked 60 fps at 1920×1080 in both heavy scenes." |
| 74:39 | Wrote the README and stopped | "Headcount Heroes is finished and plays the whole ad level end to end." |
It went shopping for characters
Opus searched the free model sites, looked at preview images and picked a cast in about two and a half minutes. It tried a giant, a demon, an orc and a yeti for the boss, then went with a barbarian from KayKit's free character pack and painted his skin red.

How hundreds of soldiers run in a browser
The ad has hundreds of soldiers on screen, and a browser game would normally choke on that. Each animated character is usually skinned on the CPU every frame, and 800 of them is far too many.
Opus used a trick called vertex animation textures. When the game loads, it plays each character's animations once (run, shoot, idle, punch, cheer) and records the position of every vertex in every frame into a texture. After that, the graphics card animates the whole crowd in a single draw call, reading from that texture, with each soldier at its own point in the animation. On the test machine, the bake took about 180 milliseconds and the game held 60 fps with up to 290 soldiers and about 840 enemies on screen.
I tested the copy on this site myself. The autopilot played the whole level at a steady 60 fps on a laptop's integrated Intel graphics at phone size, and in Chrome with WebGPU on an RTX 5090 it ran at 240 fps with the frame cap off.
Minutes into round one
| 2.5 | 56 |
|---|---|
| 7.5 | 27 |
| 12.5 | 51 |
| 17.5 | 30 |
| 22.5 | 19 |
| 27.5 | 7 |
| 32.5 | 3 |
| 37.5 | 18 |
| 42.5 | 33 |
| 47.5 | 33 |
| 52.5 | 41 |
| 57.5 | 25 |
| 62.5 | 45 |
| 67.5 | 25 |
| 72.5 | 22 |
The quiet stretch in the middle is Opus writing the game: few calls, but each one a file hundreds of lines long. The busy part after it is the loop of playing, looking at screenshots and fixing.
It played its own game, and found its army too strong
I didn't ask Opus to playtest. It did it anyway: 40 screenshot runs in round one alone, using its own autopilot to play the level and comparing the frames with the ad.
First run
Wave one
Airstrike
BossFifty-seven minutes in, it found a problem I love: its army was too strong. In its words: "Still no contact: the airstrike killed 72% and lasers finished the rest before the front rows arrived." The red horde never reached the blue one, so the big clash from the ad never happened.
So it made the horde tougher and the hero's splash damage smaller, ran it again, and reported: "Now the crowds collide: squad 111→84 while the horde is wiped." Then it checked that the losing autopilot still loses, checked landscape, rewrote the sea when it started reflecting clouds, and stopped at 74.8 minutes and $27.82.
Round one: every beat of the ad
It's all there. One soldier, then +1, +1, gates, the guy in the cage shouting for help, the red horde, fire rate x2, ATK +150% with pink lasers, an x999 airstrike, and a boss with a real HP bar.
Round 1
Round 1
Round 1Then I played it, and lost in under five seconds
I steered my four soldiers straight into the −4 gate. Four minus four is zero. I lost in about four and a half seconds, which is honestly the most accurate part of the whole remake.
But the defeat screen said "THE BOSS WAS TOO STRONG...", and there was no boss yet. Next to the real ad, other things were off too. So I sent Opus a list of complaints, written against the ad frames:
I played Headcount Heroes start to finish (?demo=1, ?demo=fail, and by hand). Great work: every beat of the ad is there and it runs smoothly. Now make it look like the ad. Put your screenshots next to reference/ad-02, ad-04 and ad-06 and fix these, most important first: 1. The camera. The ad looks along a long stretch of the bridge in perspective: the squad is small near the bottom, and far ahead the red horde fills the whole width of the bridge like a red carpet of hundreds. Ours is close and almost top-down, so the bridge fills the screen like a flat white road and the horde reads as a few dozen. Lower and pull back the camera (more perspective, more road visible ahead), and make the horde waves look huge (many more enemies on screen at once, packed edge to edge). 2. The bridge. It reads as a plain white highway. Make it a real bridge high above deep blue sea: a darker asphalt deck with lane markings, thick side edges you can see the depth of, railings, and big suspension towers with cables in a strong colour (a red suspension bridge like the ads). The sea should look far below. 3. The caged hero is half off the left edge of the screen, and its "HELP!!" overlaps the "ONLY 1% PASS THIS LEVEL" caption. Put the cage on a side platform fully in frame, with HELP!! next to it and no other caption on top of it. 4. The boss. The barbarian in the bear helmet reads small and cute. The ad's boss is a towering red brute, several times taller than a soldier, that fills a good part of the bridge's width. Make him much bigger and scarier: red skin, a menacing pose, heavy ground slams with shockwaves that send soldiers flying. 5. The rescued hero is too small to read in the squad. Make him clearly bigger than the soldiers, with his own big weapon effect. 6. When I played by hand I steered my 3 soldiers into the -4 gate and lost in 7 seconds (fine, that's the ad's joke), but the DEFEATED screen said "THE BOSS WAS TOO STRONG..." The defeat text should say what actually happened (a gate, the horde or the boss). Keep everything else as it is: the level, the demo modes and keys, window.__game, the captions, and the sounds. Check each fix with screenshots in portrait 540x960. Keep this round short and focused; stop when these five read clearly. Then update game/README.md.
(The recording shows it was four soldiers and about four and a half seconds; I misjudged both while playing.)
Round two: 22 minutes, a red bridge and a giant
Round two took 22.0 minutes, $9.94 and 120 tool calls. Opus:
- Lowered the camera so about 60 metres of bridge are visible ahead, with the squad small at the bottom like in the ad.
- Turned the hordes into red carpets: a first wave of about 140 and a main horde of about 700, packed edge to edge.
- Built a red suspension bridge in code, with towers, cables and piers dropping to a deep blue sea 34 metres below.
- Moved the cage onto its own platform, fully in frame, with "HELP!!" only after the intro caption is gone.
- Made the boss about five times bigger: a red-skinned brute in black leather with an axe, whose slams crack the deck and send soldiers flying.
- Made the hero three times a soldier's height, with rockets, muzzle blasts and smoke trails.
- Made the defeat screen name the real cause: a red gate, the horde, an obstacle or the boss.
Round 1
Round 2
Round 1
Round 2The bigger boss caused a new problem. Opus's own winning run nearly lost: "the bigger boss's slams crushed 396→19 soldiers." It toned down the slams, re-ran the demo and reported: "Balance is back: wave-1 clash (40→26), a real clash with the big horde after the airstrike (100→64), and a victory at ~55 s with 171 survivors."
So I played it again. This time I made it past the gates, and the red horde ran right over my squad at about 17 seconds. Only 1% pass this level, and apparently I'm not one of them.
Next to the real ad
Here's the finished game next to two frames from the ad Opus was given: the caged hero and the boss under pink lasers.
The ad
Headcount Heroes
The ad
Headcount HeroesThe bridge, the +1 lane, the guy in the cage, the pink lasers and the red giant. The difference is that this one you can actually play. And because the brief banned anything from the real ad, every character, name and logo is different: the models are free ones from Quaternius and KayKit, and the rest was made in code.
What it cost: time, tokens and tool calls
| Round one | Round two | Total | |
|---|---|---|---|
| Time | 74.8 min | 22.0 min | 96.8 min |
| Cost (API prices) | $27.82 | $9.94 | $37.76 |
| Tool calls | 435 | 120 | 555 |
| Playtests (screenshot runs) | 40 | 7 | 47 |
| Tokens written by Opus | 384,093 | 106,517 | 490,610 |
| of which thinking | 194,202 | 55,672 | 249,874 |
| Tokens read from cache | 75.7 million | 32.7 million | 108.4 million |
The cost is what the logged tokens would cost at API list prices, as Claude Code reports it. It isn't what I paid on a subscription. Almost all of it is Opus: a small helper model (Haiku 5.5) used 3 cents. Most of the token count is Opus re-reading its own context as the session grows, which is why prompt caching matters so much for long agent runs.
And this is the finished code, file by file:
| File | Lines | What it does |
|---|---|---|
| game.js | 1,111 | Rules, combat, boss AI, camera |
| objects.js | 454 | Gates, tiles, barrels, containers, the cage |
| fx.js | 385 | Particles, lasers, debris, shockwaves |
| world.js | 320 | The bridge, the sea and the lights |
| units.js | 316 | The squad blob and the hordes |
| actors.js | 263 | The hero, the boss and the commando |
| vat.js | 258 | The crowd animation baker |
| everything else | 861 | Interface, sounds, text, level layout, loading, page and styles |
| Total | 3,968 |
Compared with other AI builds of the same ad
| Build | Model | Time | Cost (API prices) |
|---|---|---|---|
| Headcount Heroes (this one) | Claude Opus 5.5 | 97 min, 2 rounds | $37.76 |
| noclipepe's version | Claude Fable 5.2 | 1 h 10 min | $29.52 |
| noclipepe's quiz entry | GPT-6 Astra | 26 min | $6.41 |
| noclipepe's quiz entry | Qwen 4 Max | 32 min | $5.20 |
noclipepe's numbers are from his posts on November 16 and 17, 2026. The setups, prompts and ad levels differ, so read this as a rough comparison. Fable was faster and cheaper than my run. The difference is that his prompt and code were never published, and this build's prompt, notes and logs are all above.
Why Last War never built this game
If the shooter is what sells the game, why not make the whole game that shooter? Money.
Mob Control is an honest game in this genre: crowds run through gates that add and multiply, just like in the ad. It has about 302 million downloads and about $77.5 million in lifetime in-app purchases. Last War has fewer downloads, 192.5 million, and about $3.47 billion in in-app purchases. That's roughly 45 times more, or about $18 per download against 26 cents (AppMagic data via Udonis).
That comparison flatters Last War a bit, because Mob Control earns most of its money from ads, not purchases: 85% according to Voodoo, its publisher, in 2022. But the point stands. The fun game is the ad, and the money is in the base builder, with its upgrades, heroes and alliances to spend on.
Regulators are catching up. The UK has banned fake gameplay ads from Playrix (2020), Evony (2024, for an ad showing a fighter shooting numbered barrels) and the November 2026 batch. In the US, the FTC has no specific rule on gameplay in ads.
Play Headcount Heroes
The level takes about a minute. Drag left and right to steer (or use A/D or the arrow keys); shooting is automatic. On a phone, hold it upright, like the ad. On a computer, it also works in a wide window:
For this site I made three small changes to Opus's game, and nothing in the gameplay: a link back here and to this article, a hint to turn your phone upright, and an automatic resolution drop on slow phones so the frame rate holds.
Questions people ask
Is there a game like the Last War ad?
Yes, a few. Last War itself starts with that shooter for its first few minutes before turning into a base builder. Real War: Not Fake by The Greatest Developer is a full mobile game built around it, and Mob Control is the honest crowd-and-gates game from the same genre. Headcount Heroes plays the whole ad, start to finish, free in your browser.
Is Last War actually like the ads?
Only at the beginning. Naavik found that over 60% of the first four to five minutes is the shooter minigame from the ads, after which the 4X strategy game takes over. Last War's operator says the shooting content is in the game; it's just a small part of it.
Why do mobile games use fake ads?
Because they get installs. Ad analyst Eric Seufert put it this way: "no advertiser really knows why an ad works or doesn't work", so studios test many concepts, and the platforms show whichever ones people tap. According to SocialPeta's analysis of 1.6 billion ad creatives, minigames remain the most clicked format.
Are fake mobile game ads illegal?
It depends on the country. The UK's ASA has banned several, and says a "not actual gameplay" label doesn't fix an ad that misleads. South Korea's game law bans advertising content that differs from the game, and China's game industry body updated its ad standards in 2025 to prohibit gameplay that doesn't exist. In the US there's no specific rule, and the lawsuits so far have been about fake discounts, not fake gameplay.
Can you make a game with Claude Code?
Yes. Everything in Headcount Heroes, from the crowd renderer to the boss AI, was written by Claude Opus 5.5 in Claude Code, from one prompt and one round of notes. What made the difference was giving it reference frames to compare against, a way to see its own game in a browser, and a clear rule on when to stop.
How much does it cost to make a game with AI?
This one cost $37.76 at API prices for about 97 minutes of the model working, plus my time playing it and writing notes. noclipepe's Fable 5.2 version cost $29.52. On a Claude subscription you don't pay per token, so your real cost depends on your plan and how long the model works.
Can I play it on my phone?
Yes. It runs in any modern browser on a phone or a computer, with no install and no sign-up. It uses WebGPU where your browser has it and WebGL2 where it doesn't, and lowers its resolution on slower phones to keep the frame rate up.
Sources
- The build: the session logs, prompt, notes and recordings of both rounds (my own, November 28, 2026).
- Last War: Survival: US App Store listing (release date); Naavik, How Last War is winning the 4X game (January 22, 2025); Udonis, Last War: Survival statistics (AppMagic data, July 21, 2026).
- Mob Control: Udonis (July 2, 2026); PocketGamer.biz on Voodoo's ad revenue share (October 13, 2022).
- Rulings: ASA ruling on King (November 4, 2026); ASA ruling on Evony (April 3, 2024); mobilegamer.biz on the November 2026 bans.
- Why studios do it: Eric Seufert, Mobile Dev Memo (October 21, 2019); SocialPeta and Reforged Labs report (January 2, 2026); Digital Today (November 12, 2026).
- Other builds: noclipepe on X (November 16, 2026); The Greatest Developer, How My STUPID Game Made $2,000,000; Built by Mad (October 4, 2026).
- Free assets in the game: models by Quaternius and KayKit, sky by Poly Haven, sounds by Kenney and rubberduck (all CC0), engine by three.js (MIT). Full credits on the game's page.

