Your First Game
This is the path from never having opened Hengo to a small game you can play. It is one project built across nine pages, and every page adds one idea and leaves something you can run.
You do not need to know GDScript. You do need to know how to move around the Godot editor: create a scene, add a node, press play.
What you are building
Section titled “What you are building”A sprite that goes where you click. Click close to it and it slides over, click far away and it jumps straight there, and either way it spins for a moment when it lands.
It is deliberately small. The point is not the game, it is that by the end you have used every part of Hengo at least once, on something you can see running.
The path
Section titled “The path”| Page | What it teaches | |
|---|---|---|
| 1 | Collection and script | Where your work lives, and what a script compiles to |
| 2 | States and phases | The state machine, and when your steps run |
| 3 | Your first action | Putting a step on a state, editing it, running it |
| 4 | Sub-states | Nesting modes inside a mode |
| 5 | Branches and transitions | Actions that ask a question, and moving between states |
| 6 | Variables and binds | Keeping values, and the five ways to feed a field |
| 7 | Functions | A named list of steps, with inputs, outputs and ways out |
| 8 | Macros | A reusable piece of state machine, plugged in twice |
| 9 | Build the game | Compile, play, and watch it run live |
Around 45 minutes end to end, and each page stands on its own if you come back later for one idea.
Before you start
Section titled “Before you start”You need Godot 4.7 and the plugin enabled, which is covered in Installation.
Then build the scene the sprite lives in. It is plain Godot, no Hengo involved yet:
Main(Node2D), the scene rootRunner(Sprite2D) at(576, 324), with Godot’s ownicon.svgdropped into its Texture
That is the whole scene. The script you write over the next pages goes on Runner.