# AI Game Generator: Build a Browser Game with a Coding Agent, and Its Trailer

> An AI game generator turns a description into a playable game. Hosted prompt-to-game sites give you a first version fast; a coding agent such as Claude Code gives you the source to check, change and ship. What finishes an agent-built game is a bot that plays it after every change, not a longer prompt.

By Iris Tu, Founder of AdAnt. Updated 2026-11-15.
Canonical: https://adant.ai/guides/ai-game-generator

"AI game generator" covers two different things: a site where you type an idea and play a result, and a coding agent that writes a game you keep as source code. This guide is about the second, what makes its games finished rather than demos, and how to get a trailer out of the game once it plays.

## Hosted generator or coding agent?

**A hosted generator is faster to a first play; a coding agent gives you a game you own and can change line by line.**

| | Hosted prompt-to-game site | Coding agent (Claude Code, Codex) |
|---|---|---|
| What you get | A playable version on their site | The source files of the game |
| Changing it | Another prompt | Another prompt, or edit the code |
| Where it runs | Their player or a share link | Any web page, your own domain |
| Best for | Trying an idea in minutes | A game you will ship, brand or keep |

Either way, one prompt gets a first version and the rest is rounds of specific changes. The difference is what you hold at the end.

## How do you get a finished game, not a demo?

**Give the agent checks it cannot argue with: a bot that plays the real page, a reviewer that has not seen the build, and a budget.** A long run with nobody watching fails in three ways: the game cannot be finished, it looks unfinished, or the run never ends.

Our [One-Shot First-Person Browser Game skill](https://adant.ai/skills/one-shot-3d-browser-game) puts a check in front of each. A bot walks a route through the real page with Playwright after each change and reports objectives completed, time stuck, falls through the floor and frame time. Screenshots from that run go to a reviewer who scores them against a written bar, and a ledger of what each milestone cost says when to cut scope or ship. Every mesh, texture and sound is made in code, on three.js.

## Can a game be calm, and play on a phone?

**Yes, and a calm game is easier to check, because nobody can lose it.** The [Dreamlike Voyage Browser Game skill](https://adant.ai/skills/dream-voyage-game) builds a ride through three to nine invented worlds in three.js, played with one thumb on a phone or in a browser tab.

The ride runs in fixed steps of 1/60 s, so a frame looks the same whenever it is drawn. That lets a checker ride the whole path in a headless browser and fail what a player would notice, such as a world never reached or a phone page that overflows, and lets a recorder step the game into an MP4 with its sound.

## How do you make a trailer from gameplay?

**Replay the game from its inputs instead of recording the screen, and cut the best moments to a beat.** A screen recording drops frames and catches the cursor; a replay renders every frame exactly.

The [Browser Game Trailer skill](https://adant.ai/skills/browser-game-trailer) has your agent build a small game that plays in a browser tab, then play it with scripted inputs and cut a 15 to 30 second gameplay trailer from its best moments. The game logs its highlights while it plays, a bot keeps the run with the most worth showing, and a checker fails a trailer that freezes, goes black or drifts out of sync.

## What should the first prompt say?

**The perspective, the goal, the controls and the look, in a few sentences, and the device it must play on.** Then ask the agent for a one-page design doc and a milestone plan before any code. A plan you can read is the cheapest place to fix a game.

## Frequently asked questions

### Can AI make a whole game from one prompt?

It can make a first playable version. A finished game takes a plan and checks: a design doc, milestones that each end in a command, and a bot that plays the build after each change.

### Do I need art or sound files?

No. Our game skills make every mesh, texture and sound in code, so the game has no asset files to license or lose.

### Who owns a game made with these skills?

You do. The code in each skill's ZIP is AdAnt's own, under the MIT license, and the games you make with it are yours.

### How much do the game skills cost?

Each is a premium skill: $2.99 once, or $99 once for every skill in the library, and they come with every paid AdAnt plan from $15 a month.
