# How to make a game with ChatGPT, from first prompt to a game you can play

Updated Nov 4, 2026. Roam is our app, and the Roam team wrote this page. Source: https://roam.gg/make/how-to-make-a-game-with-chatgpt/

Ask ChatGPT for a small game in one HTML file, save it and open it. On Plus or Pro, ChatGPT Sites can build the game and host it at a link. Real steps for both are below.

## Quick answer

To make a game with ChatGPT, describe one small game, ask for a single HTML file, save the code and open it in a web browser. Paste errors back to get fixes. On Plus or Pro, ChatGPT Sites can build, preview and host the game at a link. To skip code on your phone, Roam is an iPhone app that turns a sentence into a playable game.

## Can ChatGPT make a game for you?

Yes. ChatGPT writes game code from a plain description, and the Free plan is open to everyone on web, iOS and Android. Small games with clear rules work best: Snake, Pong, Breakout, a jumper, a quiz, a text adventure.

In the plain chat, running and hosting the game is your job. ChatGPT Sites, on paid plans, does that part for web games.

## Steps: make a game in the ChatGPT chat (any plan)

- **1. Describe one small game.** Name the controls, how you win and how you lose. Example: "A Breakout game in one HTML file, arrow keys and touch, 3 lives, a high score."
- **2. Save and open it.** Save the code as game.html and open it with a web browser on a computer. One file is easiest to run.
- **3. Fix one thing at a time.** Paste the error or say what looks wrong. Ask for one change per message.
- **4. Host it to share it.** Friends cannot open a file on your laptop. Upload it to a web host to get a public link.

## Steps: build and host a game with ChatGPT Sites (Plus and Pro)

OpenAI says Sites lets you create, host and share websites, apps and games, on ChatGPT web or the desktop app.

- **1. Open Work and describe the game.** Select Work, then say "website" in your prompt or mention @Sites.
- **2. Test the preview.** Play the private preview and ask for changes until it works.
- **3. Deploy it.** Deploying gives the Site its URL. New Sites are private by default.
- **4. Choose who can play.** In Share, pick selected people or, where available, anyone on the internet.

## Three ways to get a playable game (checked Nov 4, 2026)

|   | ChatGPT chat | ChatGPT Sites | Roam |
|---|---|---|---|
| Plan needed | Free plan works | Plus, Pro, Business or Enterprise (public beta) | Free to download and play; making works without a subscription. Optional Spark and Reality plans and credit packs add more creation |
| Where you build | ChatGPT on web, iOS or Android | ChatGPT on web or the desktop app | The Roam app on iPhone |
| What you get back | Code you save and run | A website or game ChatGPT builds and previews | A playable game |
| Where the game runs | A file on your computer, until you host it | A ChatGPT-hosted URL, or a domain you own | In the Roam app on iPhone |
| Sharing | Upload it to a web host, then send the link | Private at first, then selected people or public | Play solo or with friends |
| Playing together live | Only if the code includes networking and a server | Not published | Play solo or with friends |

ChatGPT Sites is a public beta. Building or editing a Site counts toward your Codex usage.

## Can ChatGPT make a mobile game?

It can write the code, but a store app takes more. An iPhone app is built in Xcode, which runs on macOS, and the App Store needs the Apple Developer Program at $99 a year. Google Play asks for a one-time $25 registration fee.

For a game just for you and your friends, a web game with touch controls is the simpler goal.

For Roblox, ChatGPT can write Luau scripts that you place and publish in Roblox Studio on Windows or Mac. Our page on [how to make a Roblox game with AI](https://roam.new/how-to-make-a-roblox-game-with-ai/) covers that path.

## The phone path: describe the game on Roam

Every ChatGPT path ends with code or a web page you look after. Roam ends with a game inside an iPhone app. You describe it in a sentence or start from a photo, it comes back playable, and you change it by talking: "more enemies", "make it faster". No code, no engine, no project files.

- **1. Download Roam.** Free to download on iPhone. Making games works without a subscription.
- **2. Describe it.** Type the game in one sentence, or start from a photo.
- **3. Change it by talking.** Play what comes back, then say what to change.
- **4. Play it.** Solo or with friends.

## Games people made on Roam

- [Bacon Breakout](https://roam.gg/play/bacon-breakout/)
- [Pogo Up](https://roam.gg/play/pogo-up/)
- [Bank It!](https://roam.gg/play/bank-it/)
- [Beach Hoops](https://roam.gg/play/beach-hoops/)
- [Outrun the Boulder](https://roam.gg/play/outrun-the-boulder/)

## Want the game without the code?

Roam is free to download on iPhone. Type the game you would have asked ChatGPT for, and play it.

Try: "a space shooter where I dodge asteroids, collect coins and fight a boss every fifth level"

[Get Roam on the App Store](https://apps.apple.com/app/apple-store/id6745489251?pt=126889634&mt=8&ct=kw-htm-chatgpt)

[Pre-register on Google Play](https://play.google.com/store/apps/details?id=gg.roam.app&referrer=utm_source%3Droam.gg%26utm_medium%3Dseo%26utm_campaign%3Dkw-htm-chatgpt)

## Questions people ask

**How do you make a game on ChatGPT?**
Ask for one small game as a single HTML file, save it and open it in a web browser. Paste errors back to get fixes.

**Can ChatGPT make a game for me?**
Yes, as code that you run and test. With Sites on a paid plan, ChatGPT also previews and hosts it at a link.

**Can ChatGPT make a mobile game?**
It can write the code. The App Store needs Xcode on a Mac and a $99 a year Apple Developer Program membership; Google Play charges a one-time $25 fee.

**How do you make a game with ChatGPT 5?**
The steps are the same on any model. On Nov 4, 2026, OpenAI's pricing page lists GPT-6 Luna and GPT-5 Thinking Mini on the Free plan. Plus and Pro add models such as GPT-6 Sol and GPT-6 Astra.

**Is making a game with ChatGPT free?**
The chat path works on the Free plan, within its limits. Sites needs Plus, Pro, Business or Enterprise.

## Sources, checked Nov 4, 2026

- [ChatGPT plans and pricing](https://chatgpt.com/pricing/)
- [ChatGPT Sites](https://chatgpt.com/features/sites/)
- [OpenAI Help Center: Creating and using ChatGPT Sites](https://help.openai.com/en/articles/20001339-creating-and-managing-chatgpt-sites)
- [Apple Developer Program](https://developer.apple.com/programs/)
- [Xcode SDK and system requirements](https://developer.apple.com/xcode/system-requirements/)
- [Play Console Help: Get started with Play Console](https://support.google.com/googleplay/android-developer/answer/6112435?hl=en)
- [Roblox Creator Hub: Studio setup](https://create.roblox.com/docs/studio/setup)
- [Roblox Creator Hub: Luau](https://create.roblox.com/docs/luau)
- [Roam on the App Store](https://apps.apple.com/app/apple-store/id6745489251?pt=126889634&mt=8&ct=kw-htm-chatgpt)

Product names belong to their owners. Roam is not affiliated with them. Facts change: check each product's own site before you choose.

## Compare Roam with other game makers

- [Rosebud AI vs ChatGPT vs Claude](https://roam.gg/rosebud-ai-vs-chatgpt.md)
- [ChatGPT game maker](https://roam.gg/chatgpt-game-maker.md)
- [ChatGPT game prompts](https://roam.gg/chatgpt-game-prompts.md)
- [How to make a game in Websim](https://roam.gg/make/how-to-make-a-game-on-websim/index.md)
- [How to make a game on Loopit](https://roam.gg/make/how-to-make-a-game-on-loopit/index.md)
- [Make a game in Sekai](https://roam.gg/make/how-to-make-a-game-in-sekai/index.md)
- [Make a game on Astrocade](https://roam.gg/make/how-to-make-a-game-on-astrocade/index.md)
- [How to make a game in Rosebud AI](https://roam.gg/make/how-to-make-a-game-on-rosebud-ai/index.md)
- [Scratch games to make](https://roam.gg/make/scratch-games-to-make/index.md)
- [All comparisons](https://roam.gg/compare.md)

## Keep exploring

- [ChatGPT game maker](https://roam.gg/chatgpt-game-maker)
- [Claude Code games](https://roam.gg/claude-code-games)
- [Text to game](https://roam.gg/text-to-game)
- [Roblox Studio alternative for mobile](https://roam.gg/roblox-studio-alternative-mobile)
- [How to make a game with Claude](https://roam.gg/make/how-to-make-a-game-with-claude/)
- [How to make a game with AI](https://roam.gg/make/how-to-make-a-game-with-ai/)
- [How to make a mobile game](https://roam.gg/make/how-to-make-a-mobile-game/)
- [ChatGPT game prompts](https://roam.gg/chatgpt-game-prompts)
- [Replit game maker](https://roam.gg/replit-game-maker)
- [Lovable game maker](https://roam.gg/lovable-game-maker)
- [Gemini game maker](https://roam.gg/gemini-game-maker)
- [How to make a Roblox game with AI](https://roam.new/how-to-make-a-roblox-game-with-ai/)

## About Roam

Roam ("Roam - Make Games" on the App Store) is an iPhone app where you play games and make your own by describing them or from a photo. It is free to download and play, and making games works without a subscription; optional Spark and Reality plans and credit packs add more creation. Android: pre-register on Google Play. https://roam.gg
