AI agents

How to make a game with ChatGPT, from idea to link

How to make a game with ChatGPT: plan it in chat, prototype in Canvas, then connect ChatGPT and Codex to iDos Games for accounts, a store and a live link.

To make a game with ChatGPT, first use it as a designer to plan one small game, then prototype it in Canvas, and finally connect ChatGPT and Codex to iDos Games so the game gets accounts, saved progress, a store and its own link. ChatGPT alone writes the code; the connector gives it a backend and hosting, so the result is a game other people can play, not a file on your computer.

Most "make a game with ChatGPT" guides stop when a Snake clone runs in the preview. That is a real milestone, and also where the hard part begins. This guide goes from the first idea to a published game, and says where each tool fits.

Three roles ChatGPT can play

RoleWhat you askWhat you get
Game designer"Help me design a small arcade game"rules, core loop, a one-page design document
Prototyper"Write it as one HTML file with Phaser"a playable demo in Canvas
Game operator (with the connector)"Create a store with three coin packs"real settings in a live game

Codex adds a fourth role, programmer on a real project, covered in step 5.

Step 01Design the game in chat

Before any code, talk the idea through. Ask ChatGPT to find the core loop and cut everything else:

I want a browser game about a fox that steals cheese from a farm. Suggest three versions of the core loop that fit in one screen, then pick the simplest and write a one-page design: goal, controls, how you lose, what makes the next round harder.

You get a short design document. Keep it: you will paste it into every later step, and it stops the AI from drifting into features you never asked for. Good first games have one action the player repeats: dodge, match, tap, aim.

Step 02Prototype in Canvas

Ask for a playable version that runs right in ChatGPT:

Using this design, write the game as a single HTML file with Phaser. Arrow keys on desktop, swipe on mobile. Placeholder shapes, no images.

Play it in the preview and give feedback one thing at a time: "the fox is too slow", "the farmer should speed up every 20 seconds". When something breaks, paste the exact error. This loop is where ChatGPT is at its best, and it is free of any platform.

Step 03Know what the prototype is missing

The prototype is a toy until it gets the parts every real game needs:

  • accounts, so a player keeps progress on a new phone;
  • saved progress and inventory on a server, not in the browser;
  • a store where prices are checked by a server, not stored in the page;
  • leaderboards, quests and daily rewards that bring players back;
  • hosting at a link you can share.

ChatGPT can write any of these, but each one is a backend project. On iDos Games they already exist, and ChatGPT can use them through the connector.

Step 04Create the game and connect ChatGPT

Open Create, paste your design document as the idea and answer a few questions. The platform picks a starting template, and the AI coder makes a playable first version: see create with AI.

Then add a custom connector in ChatGPT with the address:

text
https://site.idosgames.com/api/v2/mcp

On first use ChatGPT asks you to sign in to iDos Games and pick the apps it may work with. No API keys. The exact menu path is on idosgames.com/mcp. Now you can run the game's economy from the chat:

  • "Create a store with three coin packs and a free daily gift."
  • "Make three daily quests: for wins, for purchases and for upgrades."
  • "Add a weekly leaderboard by best score."
  • "Generate an icon for the cheese item and put it into the store."

These are server settings, so they change in the live game without a new build.

Shop
12 450
320
Daily1
Currency
Packs
Daily deals Refreshes in 15:40:12
Daily gift
FREE
Hero sword
1 200
Gear chest
90
Sold out
500 coins
$0.99
Best value1 200 coins
$1.99
x2 first buy
Storefronts are tabs; the badge counts free offers waiting.
Rotation timer: the server swaps the offers of the slot when it runs out.
A free daily gift shines until it is claimed.
Sold out: the limit for this window is spent.
Ribbons and the first-purchase bonus come from the offer settings.
Example. The store screen as a player sees it, in the default look. The look is changed in src/ui.config.ts.

Step 05Let Codex write the code

For changes in the game code, connect Codex to both iDos Games servers:

Terminal
codex mcp add idosgames --url https://site.idosgames.com/api/v2/mcp
codex mcp add idosgames-registry -- npx -y @idosgames/mcp

Ask it to load the skill idosgames-getting-started and build your app from the design document. It uses the ready modules and the TypeScript SDK instead of writing a backend from scratch, and Phaser code from your Canvas prototype carries over. All options for agents: building with AI agents over MCP.

Step 06Test and publish

Build the game, upload the build to the test copy and give me the link.

Play it on a phone, fix what feels wrong, then ask to deploy the tested build. The game goes live at {id}.idos.games, and you can list it in the idosgames.com catalog when you are ready. A rollback is one click in the dashboard.

Prompts that save time

  • Paste the design document at the start of every new chat. ChatGPT forgets; the document does not.
  • Ask for the whole changed file while you prototype, not a fragment you have to place yourself.
  • Describe the symptom, not your guess. "The score resets when I pause" beats "fix the score variable".
  • Keep numbers out of the code once the game is live: prices, rewards and drop rates belong in server settings.

Common mistakes

  1. Asking for the dream game first. Open world plus crafting plus online battles never finishes. One loop first.
  2. Polishing art before the game is fun. Shapes are enough until people want to play another round.
  3. Keeping the store in the browser. Anyone can open the developer tools and give themselves coins.
  4. Never testing on a phone. Most people open a shared link on one.

If you would rather not juggle tools

The built-in AI coder of iDos Games does steps 2 to 6 in one place, in the browser: how to make a game with AI. Developers who live in the terminal can use the same platform with Claude Code.

Aidos Ryskeldinov

About the author

Founder of iDos Games

Lifelong gamer and tech enthusiast. Since 2020 I have been building and shipping cross-platform games and apps, and today I'm building iDos Games: a platform where anyone can make a game with AI, put it live at its own link and earn from it. Here I share how to make games faster and easier than you'd think.

Frequently asked questions

Can ChatGPT make a whole game by itself?

It writes a small game in one HTML file well. A real game also needs accounts, saved progress, a store and hosting. Connected to iDos Games, ChatGPT gets these as ready parts and a place where the game goes live.

Do I need an API key to connect ChatGPT?

No. You add iDos Games as a custom connector, sign in in the browser and choose which apps ChatGPT may work with. Custom connectors depend on your ChatGPT plan.

What is the difference between ChatGPT and Codex here?

ChatGPT in the chat changes the settings of your app: store, quests, leaderboards, assets, releases. Codex works with the code itself: it builds the project with the SDK and uploads builds.

Which game engine should I ask ChatGPT for?

For a browser game, plain TypeScript with Phaser for 2D or three.js for 3D. Both are ready in iDos Games projects, so code from a prototype moves over without a new engine.

Does the same setup work with Claude or Cursor?

Yes. Both iDos Games MCP servers work with any MCP client; the setup for each one is on idosgames.com/mcp.

Learn more in the documentation

Make your own game

Describe the idea in a sentence - the AI coder builds it, and it goes live at its own link.

All articles