Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Programming languages

Game Development with Godot & GDScript

Make 2D and 3D games with Godot 4.7 and GDScript: scenes, signals, physics, UI, saving, shaders, multiplayer and export, with every example run on Godot 4.7.2.

49 lessons to read 11 modules

49 lessons: 1 free, 36 free with Pro answers and 12 with a free core.

Examples run with godot 4.7.2-stable.

Who it is for

Hobbyist and indie game developers.

What you will be able to do

  • Install Godot 4.7, work in the editor and set up projects that version control and other computers handle cleanly
  • Write typed GDScript with variables, control flow, functions, collections and classes
  • Build games from scenes and nodes, and connect them with signals, groups and autoloads
  • Handle keyboard, mouse, touch and gamepad input through actions that players can rebind
  • Move characters and objects with vectors, transforms and 2D and 3D physics
  • Build 2D worlds with TileMapLayer, cameras and lights, and animate them with tracks, state machines and tweens
  • Make menus and HUDs that work with a controller and a screen reader, in more than one language
  • Save games safely, load player files and mods without running untrusted code, and structure larger games
  • Test, debug and profile games, and keep them within a frame budget
  • Add online features and multiplayer, then export, credit and publish finished games

Revise and practise

Modules and lessons

What the labels mean

Free
the whole lesson and every answer in it
Free lesson, Pro answers
the whole lesson is free; the model answers to its interview questions open with a pass
Free core, Pro depth
the core of the lesson is free; its in-depth parts open with a pass
Pro
opens with a Pro, Premium or Ultimate pass

Minutes are reading time: “7 of 20 min free” means 7 minutes of the lesson are free.

What a pass opens in this track

36 in-depth parts and 109 interview answers. The same pass opens every other track and every Pro tool.

  1. Module 1

    Godot, the editor and your first scene

    Install Godot 4.7.2, find your way around the editor, build scenes from nodes and set up a project for version control.

    1. Godot 4.7: install, versions and renderers Beginner Free lesson, Pro answers: 20 minutes
    2. The editor, Project Manager and settings Beginner Free lesson, Pro answers: 15 minutes
    3. Nodes, scenes and instancing Beginner Free lesson, Pro answers: 15 minutes
    4. Project files, UIDs and version control Beginner Free lesson, Pro answers: 15 minutes
  2. Module 2

    GDScript fundamentals through game data

    Variables, types, strings, control flow, match and functions, taught with game examples and checked headless on Godot 4.7.2.

    1. Your first script and the game loop Beginner Free lesson, Pro answers: 20 minutes
    2. Variables, types and operators Beginner Free lesson, Pro answers: 15 minutes
    3. Strings, StringName and text formatting Beginner Free lesson, Pro answers: 15 minutes
    4. Conditions and loops Beginner Free lesson, Pro answers: 15 minutes
    5. match statements, patterns and enums Beginner Free lesson, Pro answers: 15 minutes
    6. Functions, scope and variadic arguments Beginner Free lesson, Pro answers: 15 minutes
  3. Module 3

    Arrays, dictionaries and packed data

    Arrays, typed arrays, dictionaries, typed dictionaries and packed arrays, with the reference-semantics traps measured on 4.7.2.

    1. Arrays and typed arrays Beginner Free lesson, Pro answers: 20 minutes
    2. Dictionaries and typed dictionaries Beginner Free lesson, Pro answers: 20 minutes
    3. Packed arrays and building strings fast Intermediate Free lesson, Pro answers: 15 minutes
  4. Module 4

    The scene tree, nodes and signals

    Node lifecycle, finding nodes, signals, await, instancing and saving scenes, and autoloads: the core of every Godot game.

    1. The scene tree and node lifecycle Beginner Free lesson, Pro answers: 20 minutes
    2. Finding nodes: paths, groups, unique names Beginner Free lesson, Pro answers: 20 minutes
    3. Signals and connections Beginner Free lesson, Pro answers: 15 minutes
    4. await, coroutines and timers Intermediate Free lesson, Pro answers: 15 minutes
    5. Instancing, saving and switching scenes Intermediate Free lesson, Pro answers: 15 minutes
    6. Autoloads and global state Intermediate Free lesson, Pro answers: 15 minutes
  5. Module 5

    Input and player control

    Actions, events, analogue input, mouse, touch, gamepads and rebinding, all tested by replaying simulated input headless.

    1. Input map, actions and input events Beginner Free lesson, Pro answers: 20 minutes
    2. Mouse, touch, gamepads and key rebinding Intermediate Free lesson, Pro answers: 20 minutes
  6. Module 6

    Game math and 2D physics

    Vectors, transforms, physics bodies, layers and masks, character controllers, queries and physics interpolation, verified with fixed-step headless runs.

    1. Vector math for games Intermediate Free lesson, Pro answers: 20 minutes
    2. Transforms and coordinate spaces Intermediate Free lesson, Pro answers: 15 minutes
    3. Physics bodies, layers and masks Intermediate Free lesson, Pro answers: 20 minutes
    4. Platformer and top-down character controllers Intermediate Free lesson, Pro answers: 15 minutes
    5. Rigid bodies, raycasts and physics queries Intermediate Free lesson, Pro answers: 15 minutes
    6. Physics ticks, interpolation and jitter Intermediate Free lesson, Pro answers: 15 minutes
  7. Module 7

    Building 2D worlds

    Sprites and pixel art, TileMapLayer and TileSets, cameras and parallax, 2D lights and custom drawing.

    1. Sprites, sprite sheets and pixel art Beginner Free lesson, Pro answers: 15 minutes
    2. TileMapLayer, TileSets and terrains Intermediate Free lesson, Pro answers: 15 minutes
    3. Cameras, parallax and screen resolution Intermediate Free lesson, Pro answers: 20 minutes
    4. 2D lights, shadows and custom drawing Intermediate Free lesson, Pro answers: 15 minutes
  8. Module 8

    Animation and game feel

    AnimationPlayer, AnimationTree state machines and blend spaces, Tweens, easing and juice, all advanced deterministically for tests.

    1. AnimationPlayer and animation tracks Intermediate Free: 20 minutes
    2. AnimationTree, blend spaces and state machines Intermediate Free lesson, Pro answers: 20 minutes
    3. Tweens, easing and game juice Beginner Free lesson, Pro answers: 15 minutes
  9. Module 9

    Classes, memory and custom resources

    Classes and inheritance, properties, static members and abstract classes, lambdas and their capture rules, memory management and data-driven resources.

    1. Classes, inheritance and class_name Intermediate Free lesson, Pro answers: 15 minutes
    2. Properties, static members and abstract classes Intermediate Free core, Pro depth: 7 of 20 minutes free
    3. Lambdas, Callables and capture rules Intermediate Free core, Pro depth: 7 of 20 minutes free
    4. Memory: Object, RefCounted, Node, Resource Intermediate Free core, Pro depth: 7 of 20 minutes free
    5. Custom resources and data-driven design Intermediate Free core, Pro depth: 5 of 15 minutes free
  10. Module 10

    Static typing, debugging and testing

    Strict typing and warnings, error handling without exceptions, the debugger and profilers, unit tests with GUT and gdUnit4, and documentation.

    1. Static typing and the warning system Intermediate Free lesson, Pro answers: 15 minutes
    2. Errors, asserts and defensive code Intermediate Free core, Pro depth: 7 of 20 minutes free
    3. Debugger, profiler and monitors Intermediate Free core, Pro depth: 8 of 20 minutes free
    4. Unit tests with GUT and gdUnit4 Intermediate Free core, Pro depth: 5 of 15 minutes free
    5. Style guide, doc comments and external editors Beginner Free core, Pro depth: 7 of 20 minutes free
  11. Module 11

    UI, menus, accessibility and localization

    Control layout, themes and rich text, HUD, pause and settings menus, controller focus and screen-reader support, and translations.

    1. Control layout: anchors and containers Beginner Free lesson, Pro answers: 20 minutes
    2. Themes, fonts and rich text Beginner Free core, Pro depth: 7 of 20 minutes free
    3. HUD, pause and settings menus Intermediate Free core, Pro depth: 7 of 20 minutes free
    4. Focus navigation and accessibility Intermediate Free core, Pro depth: 8 of 20 minutes free
    5. Localization and translations Intermediate Free core, Pro depth: 7 of 20 minutes free

Related tools

Official documentation

More in Programming languages

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.