Skip to content

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.

The finished game: a click near slides the sprite over, a click far makes it jump.

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.

PageWhat it teaches
1Collection and scriptWhere your work lives, and what a script compiles to
2States and phasesThe state machine, and when your steps run
3Your first actionPutting a step on a state, editing it, running it
4Sub-statesNesting modes inside a mode
5Branches and transitionsActions that ask a question, and moving between states
6Variables and bindsKeeping values, and the five ways to feed a field
7FunctionsA named list of steps, with inputs, outputs and ways out
8MacrosA reusable piece of state machine, plugged in twice
9Build the gameCompile, 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.

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 root
    • Runner (Sprite2D) at (576, 324), with Godot’s own icon.svg dropped into its Texture

That is the whole scene. The script you write over the next pages goes on Runner.

The scene: a Node2D root and a Sprite2D carrying Godot’s icon.