Make Games with Godot 4 and AI · Lesson 1 of 11

Godot 4 for Beginners: Install, First Run & AI Setup (Lesson 1)

In this lesson you'll install Godot 4, create a project, take a quick tour of the editor, and run your first scene. In the second half, we'll sort out the different ways you can set things up to build games with AI.

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.

The Hop Hop Coins game screen, with a character using the Godot icon and three coins
The game as it looks at the end of Lesson 3. From here, we'll add jumping, platforms, a score, and sound

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.

Who this series is for
  • 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.

  1. Open the official site at godotengine.org/download.
  2. 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).
  3. 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.
About versions

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.

  1. Click "+ Create" in the top left. The "Create New Project" dialog opens.
  2. For Project Name, type Hop Hop Coins (a name like hop-hop-coins works too).
  3. Under Project Path, choose where to save it. If "Create Folder" is on, a folder with the project's name is created for you.
  4. For Renderer, choose "Compatibility" (Forward+ is selected by default).
  5. With "Edit Now" checked, click "Create" and the editor opens.
The Create New Project dialog in Godot 4.6, showing Project Name, Project Path, and the renderer options
The "Create New Project" dialog. Switch the renderer to "Compatibility"
Why the "Compatibility" renderer?

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).

The full Godot 4.6 editor: the Scene and FileSystem docks on the left, the 2D view in the middle, and the Inspector on the right
The Godot 4.6 editor (shown in English)
WhereNameWhat it does
Top leftScene dockShows the nodes (building blocks) of the open scene as a tree. We'll cover this in detail in Lesson 2.
Bottom leftFileSystem dockThe contents of the project folder (res://). You drag images and scripts from here to use them.
MiddleMain screenSwitch views with "2D", "3D", "Script", "Game", and "AssetLib" at the top. In 2D you place characters; in Script you write code.
RightInspectorEdit the settings (position, image, color, and so on) of the selected node. This is the area you'll use most.
BottomBottom 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.

Changing the editor language

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.

  1. In the Scene dock, click "2D Scene". This creates one node named Node2D.
  2. Double-click that node and rename it to Main.
  3. Save with Ctrl + S (Cmd + S on macOS). Name the file main.tscn.
  4. With Main selected, click the "+" button in the top left of the Scene dock. A list of nodes opens; type Label in the search box, select it, and click "Create".
  5. In the Inspector's Text field, type Hop Hop Coins.
  6. 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.

ApproachWhat the AI can doWhat you do
AChat
(ChatGPT, Claude, etc.)
Write code, explain it, and guess the cause of errorsCopy and paste code, work in the editor, run the game, and tell the AI the results
BCoding AI
(Claude Code, Cursor, etc.)
Everything in A, plus read and write your project files directlyCheck things in the editor, run the game, and see if it behaves right
CB + 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 screenshotsDecide 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.

  1. To use Claude Code, you need a paid Claude plan (Pro or higher) or an API key.
  2. 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.
Windows (PowerShell)
irm https://claude.ai/install.ps1 | iex
macOS / Linux
curl -fsSL https://claude.ai/install.sh | bash

When 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.

  1. In the terminal, move into your project folder and type claude to start it.
Terminal
cd "C:\Users\YourName\Documents\Hop Hop Coins"
claude

For your first message, it's a good idea to have it look through the project.

This folder is a Godot 4.7 project. Look at the files inside and explain what each one is for, in a way a beginner can understand. Don't change any files yet.

It should read files like project.godot and main.tscn and explain them. .tscn files are plain text, so AI can read them too.

Working with AI: key points for this lesson
  • 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 .tscn while 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.

Learn more about Godot MCP Pro · Games made with MCP

All lessons in the series (11)
  1. Lesson 1: Installing Godot and setting up AI toolsYou are here
  2. Lesson 2: Nodes and scenes
  3. Lesson 3: GDScript basics
  4. Lesson 4: Input and player movement
  5. Lesson 5: Gravity, jumping, and tilemaps
  6. Lesson 6: Signals, coins, and enemies
  7. Lesson 7: UI and screen transitions
  8. Lesson 8: Sound and game feel
  9. Lesson 9: Letting AI playtest your game
  10. Lesson 10: Exporting and publishing
  11. Lesson 11: Bonus: one-prompt games by genre