y2kmallrat

Game Development with Godot 4: A First Course

Preface

From your first node to a finished point-and-click adventure with Popochiu

y2kmallrat · First edition, October 2026

Written for Godot 4.7 (stable) and Popochiu 2.2.1.

An unofficial guide. This book is an independent educational work. It is not produced, endorsed, or sponsored by the Godot Foundation, by Carenalga, or by the Popochiu project or Godot Engine contributors. All text in it was written for this book.

Godot Engine is Copyright (c) 2014-present Godot Engine contributors and Copyright (c) 2007-2014 Juan Linietsky and Ariel Manzur, released under the MIT License. Popochiu is a free, open-source Godot plugin by Carenalga and contributors, released under the MIT License. Thank you to both communities.

"Godot" and the Godot logo are trademarks of the Godot Foundation. The book uses the names only to refer to the software.

Copyright © 2026 y2kmallrat. The text, diagrams, screenshots and cover art of this book are licensed under the Creative Commons Attribution-NonCommercial 4.0 International license (CC BY-NC 4.0, https://creativecommons.org/licenses/by-nc/4.0/). You may share and adapt them with credit to the author, but not for commercial use. The example code is released under the MIT License.


Preface

This book teaches you to make games with Godot, a free and open-source game engine. It assumes you have never opened Godot before. It does assume you have met the basic ideas of programming, such as variables, loops and functions, in a language like Java, C or Python. If you have not, Chapters 3 and 4 move slowly enough to follow, but expect to reread them.

The book has two aims. The first is to give you a real foundation in Godot: the editor, the scene system, the GDScript language, 2D graphics, physics, interfaces, animation, sound, saving data and shipping a finished program. These skills transfer to any kind of 2D game. The second aim is to apply that foundation to one genre, the point-and-click adventure, using a Godot plugin called Popochiu. By the last chapter you will have built Weird Hotel, a small, strange adventure game with two rooms, an inventory, item puzzles, a talking frog, a mini-game, a boss fight, death and respawn, save files and a Windows build.

Like a school textbook, this book covers more than the final project strictly needs. Part II teaches physics bodies, tilemaps and menus even though an adventure game uses little of them. You will need them for your second game, and Popochiu makes much more sense once you know what it is built on.

How this book is organized

Part Chapters What you learn
I. Foundations 1-5 What an engine is, the Godot editor, nodes and scenes, and the GDScript language from variables to signals
II. Making 2D games 6-11 Movement and input, physics and collisions, user interfaces, animation and audio, resources and saving, debugging, version control and export
III. Adventure games with Popochiu 12-18 Adventure game design, Popochiu's architecture, rooms and characters, inventory puzzles, dialogue, mini-games and a boss fight, saving, polish and release
Appendices A-G Reference material: GDScript summary, shortcuts, troubleshooting, answers, glossary, working with an AI tutor, complete Weird Hotel listings

How each chapter works

Every chapter follows the same pattern, so you always know where you are:

  1. Learning objectives: what you will be able to do by the end.
  2. Key terms: the new words, defined up front.
  3. Numbered sections: the lesson itself, with worked examples and short Try it activities.
  4. Lab: a longer hands-on project with numbered steps and an expected result.
  5. Chapter summary: the main ideas in a few bullets.
  6. Review questions: check your understanding. Answers are in Appendix D.
  7. Exercises: graded Practice (easy), Apply (medium) and Challenge (hard).
  8. Common mistakes: symptom, cause and fix for the errors beginners hit most.
  9. Further reading: official documentation pages to go deeper.

Callout boxes appear throughout:

Note: extra detail worth knowing.

Warning: something that can lose work or cause confusing bugs.

Why it works: the reasoning behind a technique.

Try it: a small activity to do right now.

How to study with this book

  • Type the code; don't paste it. Typing forces you to read every line, and the typos you make teach you to read error messages.
  • Run often. Every lab step leaves the project in a working state. Run the game after each step, not only at the end.
  • Make it work with boxes first. Use plain shapes and placeholder text. Gameplay is the point; art comes last.
  • Commit after every working step. Chapter 11 teaches git. From Part III on, every lab ends with a commit.
  • Do the review questions before checking Appendix D. Getting one wrong and then understanding why is worth more than reading the answer.
  • When stuck, ask for an explanation, not a fix. Appendix F shows how to use an AI assistant as a tutor rather than a ghostwriter.

About versions

Godot and Popochiu both change over time. This book was written against Godot 4.7 and Popochiu 2.2.1, the stable pairing as of October 2026. Popochiu only supports specific Godot versions, so Chapter 13 shows you how to check the version table before installing. If a menu name or button label on your screen differs slightly from the book, the idea is almost always the same. Where the book could not confirm a detail for your exact version, it says so and tells you where to check.

A suggested 15-week schedule

For a one-semester course, or for self-study at about 4-6 hours a week:

Week Chapters Milestone
1 1-2 Godot installed; first scene built and run
2 3 First scripts; types and the script lifecycle
3 4 Number-guessing game (Lab 4)
4 5 Light-switch system with signals and an autoload (Lab 5)
5 6 Move-and-aim prototype (Lab 6)
6 7 Coin Dash (Lab 7)
7 8-9 Menus, HUD, animation and sound
8 10-11 Save system, git, debugging, first Windows export. Midterm project: a small original 2D game
9 12 Weird Hotel design document
10 13-14 Popochiu installed; two rooms with a walking player
11 15 Key, door and flute puzzles with persistent state
12 16 Frog dialogue and the hallway cutscene
13 17 Bug-catching mini-game and boss fight
14 18 Saving, polish, playtesting, export
15 Capstone Your own short adventure game, graded with the rubric in Chapter 18

Prefer to read offline? PDF (16 MB)