How to Make a Game with GPT-6: Godot, Unity, Unreal, or Web Engines

Concept illustration of GPT-6 helping build a platformer, a forest adventure, and a space exploration game

The fastest way to make a game with GPT-6 is to let GPT-6.1 Sol (or the more capable GPT-6 Astra) work directly on your project in Codex, then pick the engine by goal: Phaser for a 2D browser game, Godot for an ongoing indie project, Unity if you know C#, and Unreal only for a clear 3D target. Make the first version a single level you can finish and restart. Asking for code in a ChatGPT chat also works, but project setup, running, and error reporting stay with you.

Below: the GPT-6 lineup as of October 2026, seven tools compared, and the official way each engine connects to an AI agent.

Four steps to start a game with GPT-6

  1. Write a one-page plan: what the player repeats, how they win, and what version one leaves out. See Plan before making a game with AI: core loop, prototype, and GDD template.
  2. Use a tool that can run code: Codex (desktop app, CLI, IDE extension) can edit files, run commands, and run tests. A chat window only hands you code.
  3. Pick an engine from the table below, choosing the one you are most likely to finish a first project with.
  4. Close the feedback loop: the agent should be able to launch the game, run tests, and see errors and screenshots. OpenAI’s Astra game development case study settled the art direction with image generation first, used Vitest and Playwright for tests and screenshots, and relied on a human playtester to report how it felt.

For architectures that make agent verification easier, see open-source game engine architectures for AI agents.

Which GPT-6 model for game dev: Astra, Sol, or Luna?

As of October 19, 2026, the OpenAI API model overview lists three GPT-6 family models:

Model API ID Official positioning API price per 1M tokens (input / output) Use in game dev
GPT-6 Astra gpt-6-astra Most capable, for the most demanding work $10 / $50 Architecture, hard performance or physics bugs
GPT-6.1 Sol gpt-6.1-sol Near-Astra performance at lower cost $2 / $10 Day-to-day gameplay code and fixes
GPT-6 Luna gpt-6-luna Most efficient, for focused high-volume tasks $0.10 / $0.50 Small edits, data and text batches

Prices come from the official model pages (Astra, GPT-6.1 Sol); requests over 272K input tokens cost more.

In Codex, the official models page recommends GPT-6.1 Sol for complex coding and agent work on Plus, Pro, Business, Enterprise, and Edu (Enterprise and Edu need an admin to enable it). Free and Go users can choose GPT-6 Luna in the desktop app. The Sol the API overview now features is GPT-6.1 Sol from late September, not the original September 22 GPT-6 Sol; background in the OpenAI DevDay 2026 recap.

The model helps during development; the finished game does not call GPT-6. A fixed-rule game runs on the engine alone. Only features such as a model-driven conversational character connect to a model at play time and add API cost.

Seven tools compared

Tool Good for AI entry point Official agent integration Watch out for
Phaser 2D browser puzzles and arcade games JavaScript or TypeScript logic Not needed: code-only project Touch, scaling, phone testing
PixiJS Custom 2D visuals, cards, effects Rendering and interaction code Not needed: code-only project Build game state and collisions yourself
Godot 2D indie games, small 3D Scripts and text scene files None official; community MCP add-ons Nodes, resource references, game feel
Unity Mobile or 3D projects with C# experience C# systems and editor tools Yes: official Codex plugin (Unity 6+) Scene setup, package versions, devices
Unreal Engine Projects focused on 3D visuals C++ and editor automation Yes: Unreal MCP (experimental) Blueprint wiring, assets, performance
GDevelop Starting from event rules Breaking mechanics into conditions and actions Depends on the product’s own features Event order, checked in the editor
Three.js Custom 3D browser experiences Code-driven scenes and interactions Not needed: code-only project Physics and game systems are extra

My default: start with Phaser for a shareable 2D browser game; choose Godot for an ongoing 2D or small 3D project. If you already know an engine, stay with it. This is a workflow recommendation based on official documentation, not a controlled benchmark of the seven tools.

What does a game engine actually do?

AI can write code, but “the player collects a coin” needs rendering, input, collision detection, rules, and audio feedback. An engine provides those foundations so you and the AI only write rules such as “each coin is worth 10 points; five coins win the level.” A number-guessing or text-choice game can skip the engine. Phaser is a game framework; PixiJS and Three.js are graphics libraries, so game systems are yours to add.

GPT-6 with Phaser or PixiJS: 2D browser games

Phaser is a web game framework with official JavaScript and TypeScript templates; its scene system brings together cameras, loading, input, timing, and optional physics. A code-only project lets Codex run the whole edit-run-inspect loop. Start with one character, one obstacle type, and a restart button.

PixiJS is a 2D rendering library; its official FAQ says it is not a complete game engine. Use it for card displays or custom effects, but agree with the agent on screen transitions, game state, and collisions first, or you will end up with only a rendering layer.

A finished web game is not automatically playable on a phone: check in portrait mode that controls do not cover the player, touch works, and restarting clears the previous round. Before sharing, read why a localhost link will not work for friends.

GPT-6 with Godot: the friendliest open-source option

Godot’s TSCN scene format is plain text, so Codex can read and edit scene structure directly, and the command line handles running and exporting. As of October the latest stable release is Godot 4.7.2; tell the agent the exact version so it does not mix Godot 3 and 4 nodes or APIs.

Godot has no official AI agent integration. Community MCP add-ons in the asset library, such as Godot AI, let agents drive the editor, but they are third-party, so review their permissions first. GPT-6 Astra or Sol work with Godot without any add-on: the agent edits scripts and .tscn files and launches from the command line to catch errors. You still check game feel and camera in the running game.

A good first task: walk to a tree, press a key to gather, and see the inventory count go up. Add a shop once that loop is reliable.

GPT-6 with Unity: smoothest if you know C#

Unity now has an official route for Codex: the Unity AI page offers an official plugin for Claude Code, Codex, and Grok that bundles the Unity CLI, skills, and an MCP server, and supports Unity 6.0 and later. Unity says the CLI, MCP server, and plugin are free. A separate AI Gateway connects a third-party agent you already subscribe to inside the editor without using Unity credits. Batch mode and command-line methods remain available for automation.

Compiling is not the same as working: a missing component or broken Prefab reference can leave the player motionless. Ask the agent for the script change, the required scene setup, and a way to verify it in one answer. An existing Unity project is no reason to start over with a new model; give it one bounded task first.

GPT-6 with Unreal Engine: for a clear 3D goal

Unreal combines Blueprint and C++. The UE 5.8 documentation describes Unreal MCP, a plugin that runs an MCP server inside the editor so compatible agents can spawn actors, configure lighting, and create material instances. It is marked experimental, accepts local connections only by default, and has no authentication layer, so never expose it beyond your machine.

A common mix-up: Unreal’s Python scripting is for the editor, not gameplay code in a packaged game. Make one interactive mechanism your first task, not an open world.

GDevelop and Three.js: two different alternatives

GDevelop expresses logic through its event system of conditions and actions: touch a coin, add a point, remove the coin. GPT-6 can turn your idea into an event list, but whether an external agent can edit the project depends on your tool connection, and the product’s own AI is not GPT-6.

Three.js powers the Astra case study (with TypeScript, Vite, and Rapier physics), yet its official manual calls it a 3D library, not a game engine. Choose it with web development experience and a willingness to build the architecture, not just because a demo used it.

The first brief to give GPT-6

Use my specified engine and version to build a single-level gathering game. The player can move and collect one resource. Collecting five items shows a success state, and the game can restart. Use placeholder assets. Leave out accounts, stores, and multiplayer. Before editing, list the files you need to change. When finished, explain how to launch it, which interactions you actually verified, and what remains unconfirmed.

This is a starting brief, not a guarantee. Play through start, move, collect, win, and restart yourself. Once that loop holds, add music and sound effects with an AI game audio workflow.

For a first project, a small game you can keep changing, testing, and finishing matters more than picking the strongest model or engine.