Godot made simple, and my first game: Down to the Nest
What Godot is, told as a story: nodes, scenes, signals and resources made simple. And at the end, Down to the Nest, my first game, playable in the browser
Remember opening a box of building bricks as a kid and dumping everything on the carpet? Making a video game with Godot feels a lot like that moment. Except these bricks walk, shoot fireballs and sometimes run away.
This is the story of how Godot works, told the way I’d tell it to a curious kid. And there’s a prize at the end: my first game, which you can play right here on the page.
Once upon a time, a free box
Godot is a program for building video games, in 2D and 3D. The first nice thing about it is that it’s free, really free: no subscription, no cut of your sales, no account. You download it, open it, and you’re already in the workshop. It’s also open source, so if one day you wonder “why does it do that?”, you can go and read how it’s built inside.
The workshop runs on Windows, Mac and Linux. And when the game is done, Godot ships it almost anywhere: computers, Android phones and iPhones, and even the browser. I used version 4.7.2.
The bricks are called nodes
In Godot every piece is a node. A picture is a node. A camera is a node. A ticking clock is a node. A body that bumps into walls is a node.
On their own they don’t do much, like a single brick. But you can hang them one under another, like the branches of a tree, and then they start to become something. My hero, for example, is built like this:
Player (CharacterBody2D) the body that walks and bumps into walls
├── Visual (AnimatedSprite2D) the drawing that moves its legs
├── Hurtbox (Area2D) the "skin" that feels when a monster touches it
├── InvulnTimer (Timer) the clock for the seconds it's invincible
└── Weapons (Node2D) the weapons backpack
A group of nodes put together and saved is called a scene. And here’s Godot’s best trick: a scene can be used as a brick inside another scene. The hero is a scene. The slime is a scene. The fireball is a scene. The heart you pick up is a scene. And the match is one big scene holding the arena, the hero, the monsters and the score at the top. You build small pieces and then put them together, just like a house made of rooms made of bricks.
Giving the bricks a brain
A brick that sits still is boring. To make it move, you attach a script to it: the instructions for what it should do. In Godot you write them in GDScript, a language that looks like Python and is made just for games.
This is the brain that makes my hero walk:
extends CharacterBody2D
@export var speed: float = 140.0
func _physics_process(delta: float) -> void:
var direction: Vector2 = Input.get_vector("move_left", "move_right", "move_up", "move_down")
velocity = direction * speed
move_and_slide()
In plain words: “many times a second, look at which keys the player is pressing, pick a direction and walk, sliding along walls instead of getting stuck”. That’s it. The @export in front of the speed is a little bit of magic: it makes the speed show up in the editor’s panel, so you can change it with the mouse without touching the code. Mage too slow? Bump the number and try again.
The school bells
Now picture a school. When the lesson is over, the janitor doesn’t walk into every classroom to tell every kid: they ring the bell, and whoever needs to leave, leaves.
Godot works the same way, and the bells are called signals. In my game there’s a piece that counts experience points. When the hero levels up, that piece rings the bell:
leveled_up.emit(level)
It doesn’t know who’s listening, and it doesn’t care. The upgrade menu hears it and opens. The bar at the top hears it and updates. If tomorrow I add a little tune for the new level, the tune just needs to listen too. Nobody has to know everybody else, and the pieces stay small and tidy.
The trading cards
Remember trading cards, with the character on the front and the stats on the back? Godot has those too, and they’re called resources. They’re cards with data on them, saved in a file, that you can open and edit in the editor.
In my game every hero is a card. This is the paladin’s:
display_name = "Paladino"
description = "Lento ma resistente: 5 vite, lo scudo para 1 colpo su 3."
speed = 125.0
block_chance = 0.35
max_lives = 5
(The cards are written in Italian and translated when they show up on screen: slow but tough, 5 lives, the shield blocks 1 hit in 3.) The nice part is that the code is the same for every hero, only the cards change. If the paladin is too strong, you don’t touch the code: you change a number on its card. Classes, weapons, worlds: in this game everything is made of cards.
One last thing worth knowing: when you move from one scene to another, say from the menu to the match, everything in the old scene disappears. Some things have to stay, though, like your high score or the language you picked. For those Godot has autoloads, a kind of little backpack the game carries into every room. I have two: one for the game state and one for the music.
The door to the browser
When the game is ready, Godot turns it into a web page. Two tips if you want to do it too. First: to run in the browser you need the “Compatibility” renderer, so pick it on day one. Second, for pixel art: work at a small resolution (I use 640x360), let Godot scale it up to full screen, and set the image filter to “Nearest”, so the pixels stay nice and square instead of getting blurry.
Out comes a folder with an index.html page and a few files. Zip it, upload it to itch.io, and the game is online.
So let’s see this game.
Down to the nest
Once upon a time there was a little blue mage, at the bottom of a dungeon full of red slimes and orange bats.
The game is called Down to the Nest, and it’s an arena survivor: your weapons fire on their own, and all you have to do is move and not get surrounded. Sounds easy. Then wave 14 shows up.
The mage isn’t alone. You can pick one of five heroes: the fast and fragile mage, the slow paladin with the shield, the orc, the barbarian who’s the fastest of them all, and the necromancer who brings his skeletons along.

The journey crosses three worlds of 20 waves each. At the bottom of the Dungeons a dragon is waiting. Then you climb the Windy Peaks, among wolves and harpies, where a griffin lives. And at last you go down into the Dark Nest, among spiders and beetles, all the way to the Spider Queen. That’s where the name comes from: down, all the way to the nest.

You grow along the way. Every level gives you a point to spend on a new weapon, an upgrade or a talent. At levels 25, 50 and 75 your hero changes class, changes clothes and learns two new abilities: the paladin becomes a Crusader, then a Templar, and from there it goes even higher.

And then there’s luck, which goes up or down at every level as it pleases. When it likes you, blessings and hearts show up. When it doesn’t, you get mud, brambles and curses. Every now and then a golden heart pops up and runs away the moment you look at it: catch it and all your lives are refilled.

If the Queen looks easy to you, you can bring two heroes and swap them during the match. And if you reach the end, the game doesn’t stop: it starts over, meaner than before.
Your turn
It’s free, it runs in the browser and on phones too (held sideways):
The moral of the story: in Godot you build everything with four things. Bricks, scenes made of bricks, bells and cards. The blue mage, the dragon and the Spider Queen are made of nothing else.
If you reach the Queen, tell me which hero got you there.