Skip to content
Tutorials Center
My learning

Topics

Lesson 1 of 36 ยท Getting Started

What Is Godot? An Introduction to the Engine

Learn what the Godot game engine is, what it is good at, how its scene and node design works, which languages it supports, and how it compares with other engines.

Godot is a free, open-source game engine. You use it to build 2D games, 3D games and interactive apps, and then export them to Windows, macOS, Linux, Android, iOS, the web and consoles (through third-party porting companies). The engine is released under the permissive MIT license, so you pay no fees, owe no royalties and can read or change every line of its source code.

In this tutorial you will learn Godot 4, the current major version. It is a small download, starts in seconds and ships with everything in one program: a code editor, a 2D and 3D scene editor, an animation editor, a debugger and a profiler.

What runs on this site. Godot itself cannot run inside a web page that executes your lessons, so every Godot snippet here is shown read-only as GDScript. Where an idea can be demonstrated, we add a small, clearly labelled Python stand-in that runs in your browser. A stand-in is not Godot: it only models the idea (for example "how a scene tree visits its children"). To run the real code you need the free editor, which the next lesson installs.

The big idea: everything is a node, scenes are trees

Most engines give you one large "game object" with components attached. Godot takes a different route built on two ideas.

  1. A node is a small building block with one job. A Sprite2D draws an image. A CollisionShape2D describes a shape. A Timer counts down. An AudioStreamPlayer plays sound.
  2. A scene is a tree of nodes saved to a file. A player scene might contain a body node, a sprite, a collision shape and a camera. A whole level is also a scene. And scenes can be placed inside other scenes.

That is nearly all of the architecture. When you understand that a game is "scenes made of nodes, and scenes can contain other scenes", the rest of Godot starts to look familiar. We cover this in depth in Scenes and the Scene Tree.

flowchart TD
    Main["Main (Node2D)"] --> Player["Player (CharacterBody2D)"]
    Main --> Enemies["Enemies (Node2D)"]
    Player --> Sprite["Sprite2D"]
    Player --> Shape["CollisionShape2D"]
    Player --> Cam["Camera2D"]
    Enemies --> E1["Enemy (instance)"]
    Enemies --> E2["Enemy (instance)"]

A small level: one tree, with the same Enemy scene reused twice.

What you can build

Kind Typical nodes Notes
2D games Sprite2D, TileMapLayer, CharacterBody2D Godot has a dedicated 2D engine; pixels are real pixels, not flattened 3D
3D games MeshInstance3D, Camera3D, CharacterBody3D Vulkan-based renderer with modern lighting
User interfaces Control, Button, Label, containers The editor itself is built with these nodes
Tools and apps Any Control tree Godot can export desktop and mobile apps

Because the editor is made with the same UI nodes you use in games, you can also extend the editor with your own panels and tools using plugins.

Languages you can use

  • GDScript is Godot's own language. It looks like Python (indentation, no semicolons) but is designed for the engine: it knows about nodes, signals and the scene tree, loads quickly and is what almost every official example uses. This tutorial uses it. See GDScript Basics.
  • C# is available in the ".NET" build of the editor, if you prefer a general-purpose language and the .NET ecosystem.
  • C++ through GDExtension lets you add native code and libraries without recompiling the engine. Other languages (Rust, Swift and more) can be used through community bindings.

If you are choosing, begin with GDScript. You can mix languages in one project later.

Renderers

Godot 4 has three rendering backends, picked per project:

  • Forward+: the most capable one, for desktop-class hardware.
  • Mobile: tuned for phones and tablets, with fewer features.
  • Compatibility: uses OpenGL, runs on old hardware and in web exports.

You can switch later in the project settings, but some features (for example certain 3D effects) are only in the first two. For a beginner 2D game, any of them is fine.

Stand-in: a scene tree in twenty lines

Here is a Python model of the one idea above: a scene is a tree of named nodes, and each node can have children. It is not Godot, just the shape of the data.

Python Stand-in (Python): a tree of nodes

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

And this is the real thing, read-only. A script attached to the Main node can build the same shape in GDScript:

GDSCRIPT
extends Node2D

func _ready() -> void:
    var player := CharacterBody2D.new()
    player.name = "Player"
    add_child(player)

    var sprite := Sprite2D.new()
    player.add_child(sprite)
    print(get_children())

How Godot compares

You will hear comparisons with other engines. Honest, short version:

  • Small and fast to iterate. The editor is tens of megabytes, with no installer or account. Projects open quickly and are plain text files, so version control (Git) works well.
  • Great 2D. Pixel-perfect 2D, tile maps, 2D lights, physics and animation are first class.
  • 3D is solid but smaller in scale than the largest commercial engines. It is excellent for indie and mid-sized projects; huge open worlds with cutting-edge visuals need more custom work.
  • No royalties, no lock-in. You own your game and can modify the engine.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is a scene in Godot?

    Scenes are saved trees of nodes. Players, enemies, menus and whole levels are all scenes, and scenes can be instanced inside other scenes.
  2. 2. Which language is Godot's own, Python-like scripting language?

    GDScript is built for Godot. C# is available in the .NET build, and C++ works through GDExtension.
  3. 3. Which renderer is best for running a game in a web browser or on very old hardware?

    The Compatibility renderer uses OpenGL and is the one used for broad hardware support and web exports.
  4. 4. What license is Godot released under?

    Godot uses the MIT license. Your games are yours and you pay nothing for the engine.

Summary

  • Godot is a free, MIT-licensed engine for 2D, 3D and UI projects, exported to many platforms.
  • Its core design is nodes (one job each) arranged in scenes (saved node trees) that can nest.
  • GDScript is the main language; C# and C++ (GDExtension) are options.
  • There are three renderers: Forward+, Mobile and Compatibility.
  • On this site, Godot code is read-only and Python stand-ins model the ideas.

Next: Installing Godot and the Project Manager