About this series
"Make Games with Godot 4 and AI" is a free series that takes you from never having made a game to finishing a small 2D game in Godot 4. Over 11 lessons, you'll go all the way to exporting your game and publishing it on a site like itch.io.
The game we'll build is "Hop Hop Coins", where a character jumps around collecting coins. Each lesson adds a few more features.
Every lesson has a main lesson and a "Working with AI" part
- Main lesson: you work through the Godot steps and the code yourself. It's written so you can finish the whole series without using AI.
- Working with AI: how to ask an AI like Claude Code to do the same work, where it saves you effort, and what you should still check yourself.
The goal isn't to have AI build everything for you. It's to understand how Godot works so you can use AI as a tool. Once you know how things work, you'll notice when the AI makes a mistake, and your requests will get more specific.
- People who have never used Godot, or have only installed it
- A little programming experience (or none at all). Variables and if statements are explained in Lesson 3
- Windows, macOS, or Linux all work (screenshots are taken on Windows)
Download Godot 4
Godot is a free, open-source game engine. There's no installer: just extract the file you download and you're ready to go.
- Open the official site at godotengine.org/download.
- Pick the download for your OS. You'll see two versions, "Godot Engine" and "Godot Engine - .NET". This series uses the standard "Godot Engine" (the .NET version is for writing C#; the GDScript we use in this series works in the standard version).
- On Windows, extract the zip anywhere you like and double-click
Godot_v4.x.x-stable_win64.exe. On macOS, copy the app from the dmg into your Applications folder.
At the time of writing (December 2026), the official site offers Godot 4.7. The screenshots in this series were taken in 4.6.2, but the code has been tested to work the same way in 4.4 through 4.8 (beta), so you can follow along in 4.7 as is. If you want your screen to match the screenshots exactly, you can also pick a 4.6 release under "previous version" on the download page.
Godot 3.x, on the other hand, works very differently, so when you search the web for help, add "Godot 4" to your search.
Godot is also available on Steam and itch.io. If you want automatic updates, feel free to get it there instead.
Create your first project
When you start Godot, the Project Manager opens first. This is where you manage the list of games you've made.
- Click "+ Create" in the top left. The "Create New Project" dialog opens.
- For Project Name, type
Hop Hop Coins(a name likehop-hop-coinsworks too). - Under Project Path, choose where to save it. If "Create Folder" is on, a folder with the project's name is created for you.
- For Renderer, choose "Compatibility" (Forward+ is selected by default).
- With "Edit Now" checked, click "Create" and the editor opens.
The renderer is the system Godot uses to draw things, and there are three: Forward+, Mobile, and Compatibility. Compatibility runs well even on older computers and supports exporting to web browsers. We'll publish the game on the web at the end of the series, so we'll use Compatibility from the start. For 2D games, you'll barely see any visual difference. You can also switch later from the indicator in the top right of the editor.
The folder you created now contains project.godot (the project's settings file) and icon.svg (the familiar Godot icon). Inside Godot, this project folder is called res://. From now on, when you see "res://main.tscn", it means "main.tscn directly inside the project folder."
Get to know the editor
The editor is divided into five main areas. The image below shows the editor after finishing Lesson 3 (at first, the middle will be empty).
| Where | Name | What it does |
|---|---|---|
| Top left | Scene dock | Shows the nodes (building blocks) of the open scene as a tree. We'll cover this in detail in Lesson 2. |
| Bottom left | FileSystem dock | The contents of the project folder (res://). You drag images and scripts from here to use them. |
| Middle | Main screen | Switch views with "2D", "3D", "Script", "Game", and "AssetLib" at the top. In 2D you place characters; in Script you write code. |
| Right | Inspector | Edit the settings (position, image, color, and so on) of the selected node. This is the area you'll use most. |
| Bottom | Bottom panel | "Output" shows messages and errors from your program. There's also the Debugger, Animation, and more. |
The ▶ button in the top right runs the game. On the keyboard, F5 runs the whole project and F6 runs only the scene you have open.
Godot displays the editor in your computer's language. To change it, go to Editor → Editor Settings... → Interface → Editor → Editor Language, pick a language (en for English), and restart the editor. This series uses the English editor. Inspector property names (like Position and Texture) stay in English even when the editor is set to another language.
Your first run
Even though we haven't built anything yet, let's go as far as running the game. We'll put a single line of text on the screen.
- In the Scene dock, click "2D Scene". This creates one node named
Node2D. - Double-click that node and rename it to
Main. - Save with Ctrl + S (Cmd + S on macOS). Name the file
main.tscn. - With
Mainselected, click the "+" button in the top left of the Scene dock. A list of nodes opens; typeLabelin the search box, select it, and click "Create". - In the Inspector's Text field, type
Hop Hop Coins. - Press F5. If Godot tells you no main scene has been defined, click "Select Current".
If you see "Hop Hop Coins" in the top left of a gray window, it worked. Close the window (or press F8) to go back to the editor.
What you chose in step 6 is the scene that's shown first when the game starts (the main scene). This setting is saved in project.godot.
Three ways to build with AI
Now let's sort out the ways you can use AI for making games. Broadly, there are three levels.
| Approach | What the AI can do | What you do | |
|---|---|---|---|
| A | Chat (ChatGPT, Claude, etc.) | Write code, explain it, and guess the cause of errors | Copy and paste code, work in the editor, run the game, and tell the AI the results |
| B | Coding AI (Claude Code, Cursor, etc.) | Everything in A, plus read and write your project files directly | Check things in the editor, run the game, and see if it behaves right |
| C | B + MCP (an MCP server for Godot) | Everything in B, plus control the Godot editor, run the game, send key presses, and check the results with screenshots | Decide what to make and judge the result |
You can finish the main lessons in this series using approach A. Starting with A or B and considering C once you're comfortable is a good pace.
What is MCP?
MCP (Model Context Protocol) is a standard way to give AI "tools." Once you install an MCP server for Godot, the AI can call actions like "add a node," "run the game," or "take a screenshot of the screen" as tools.
The biggest difference between B and C is verification. A B-style AI can edit files, but it can't run the game and see what happens. After you ask it to "make the character move with the right arrow key," checking that it actually moves is your job. With C, the AI can run the game itself, press the right arrow key, and take a screenshot to check.
Set up Claude Code
In the "Working with AI" parts of this series, we'll mostly use Claude Code (Anthropic's coding AI) as the example. The same ideas apply to Cursor and other tools.
- To use Claude Code, you need a paid Claude plan (Pro or higher) or an API key.
- Install it by following the official docs. At the time of writing, the native install is recommended: paste the following command into your terminal and run it.
irm https://claude.ai/install.ps1 | iexcurl -fsSL https://claude.ai/install.sh | bashWhen it finishes, open a new terminal. If claude --version prints a version number, you're all set. You'll be asked to log in the first time you start it.
- In the terminal, move into your project folder and type
claudeto start it.
cd "C:\Users\YourName\Documents\Hop Hop Coins"
claudeFor your first message, it's a good idea to have it look through the project.
It should read files like project.godot and main.tscn and explain them. .tscn files are plain text, so AI can read them too.
- Start by telling the AI which version you're using, like "This is a Godot 4.7 project." If you don't, you may get back code written the old Godot 3 way.
- If an AI edits files like
.tscnwhile the editor is open, Godot may tell you the files were changed on disk and ask whether to reload. When that happens, choose "Reload from disk". Any unsaved changes in the editor will be overwritten, so it's safest to save before asking the AI to do something. - With approach C (using MCP), the AI works through the editor instead of writing files directly, so this kind of mismatch is much less likely.
Connecting MCP (optional)
Godot MCP Pro, sold on this site, is an MCP server that lets Claude Code or Cursor control the Godot editor. You install two pieces: a plugin on the Godot side and a server on the AI side. The steps are covered in How to use Claude Code with Godot 4 and Setting up on Windows.
To say it again: you can follow this series without MCP. Each lesson's "Working with AI" part shows concretely what changes when you have MCP, so there's no rush to decide.
Recap and what's next
- Godot 4 works as soon as you extract the zip (choose the standard version)
- Use the "Compatibility" renderer, with web publishing in mind
- The editor has five areas: Scene / FileSystem / main screen / Inspector / bottom panel
- F5 runs the game. The scene shown first is the "main scene"
- There are three levels of AI use: A (chat) → B (coding AI) → C (+ MCP)
Next time, we'll learn Godot's most important idea: nodes and scenes. We'll put a character and coins on screen to lay the visual groundwork for the game.
Want AI to handle the editor work and testing too?
With Godot MCP Pro, Claude Code or Cursor can control the Godot editor directly, run your game, and check the results with screenshots (190 tools, $15 one-time purchase). You can finish this series without MCP, so there's no need to decide until you feel you need it.