Game development

Stage 2 of 8 · 7 lessons · ~2 months

Programming for games

Learn GDScript in Godot: nodes, scenes and the scene tree, the _ready and _process callbacks, signals, exported variables, state machines and debugging.

Start: GDScript with static types

Lessons· one lesson for each topic, in this order

  1. 1GDScript with static types
  2. 2Nodes, scenes and the scene tree
  3. 3Signals
  4. 4Small scripts and composition
  5. 5Exposed variables and tuning
  6. 6State machines
  7. 7Debugging games

Do this

  • Finish the first units of your engine's official beginner course.
  • Rebuild the player from your clone with a state machine instead of booleans.
  • Split one large script into at least three small components or child nodes.
  • Add a health component that raises an event and a UI element that listens to it.
  • Expose every tuning value in the editor and tune the jump or movement until it feels right.
  • Fix one bug using a breakpoint and one using debug drawing.
  • Commit after each working change.

Start with· follow one of these

Practise

  • Free Godot 4 project tutorials and open source demos to build and read

  • A friendly one-sitting Godot course that builds a small platformer

Keep handy

Also worth your time

Before moving on: A small Godot game written in typed GDScript: a player scene with a state machine, an enemy scene, a health component that emits a signal, and a HUD connected to it, with tuning values as @export variables.

Tauseef's advice
Follow the official course for your engine, but after every lesson change the project without instructions: add an enemy, a power-up, a second level. The difference between people who can make games and people who can follow tutorials is exactly that moment of building something the video did not show.

Mark this stage as not done?