Guide to the Godot game engine

Category:Book:Guide to the Godot game engine#%20 Category:Subject:Open source software#Guide%20to%20the%20Godot%20game%20engine Category:Subject:Open source software/all books Category:Subject:Computer software/all books Category:Subject:Computing/all books Category:Subject:Books by subject/all books Category:Subject:Video game development#Guide%20to%20the%20Godot%20game%20engine Category:Subject:Video game development/all books Category:Subject:Electronic games/all books Category:Subject:Games/all books Category:Subject:Recreational activities/all books Category:Subject:Miscellaneous/all books Category:Subject:Books by subject/all books Category:Subject:Trades/all books Category:Subject:Miscellaneous/all books Category:Subject:Books by subject/all books Category:Subject:2D graphics software#Guide%20to%20the%20Godot%20game%20engine Category:Subject:2D graphics software/all books Category:Subject:Multimedia software/all books Category:Subject:Computer software/all books Category:Subject:Computing/all books Category:Subject:Books by subject/all books Category:Book:Guide to the Godot game engine#%20 Category:Book:Wikibooks Stacks/Books#Guide%20to%20the%20Godot%20game%20engineCategory:Shelf:Open source software Category:Shelf:Open source software/all books Category:Shelf:Computer software/all books#Computer%20software Category:Department:Computing/all books#ComputingCategory:Shelf:Video game development Category:Shelf:Video game development/all books Category:Shelf:Electronic games/all books#Electronic%20games Category:Shelf:Games/all books#Games Category:Department:Miscellaneous/all books#Miscellaneous Category:Department:Recreational activities/all books#Recreational%20activities Category:Shelf:Trades/all books#TradesCategory:Shelf:2D graphics software Category:Shelf:2D graphics software/all books Category:Shelf:Computer software/all books#Computer%20software Category:Department:Computing/all books#Computing Category:Shelf:Multimedia software/all books#Multimedia%20software Category:Books nearing completionCategory:Books by completion status/all books

This book will teach you about the free and open source Godot engine. Godot, like Unreal, Unity and other common game engines, has an active community. However, Godot is free, less demanding on operating systems, so you can use it on older hardware, and you can "export" your game to various systems, including mobile, in a single mouse click. It may be free, but it's not lacking in any way.

Godot was named after the play, Waiting for Godot, as it represents a never-ending wish to add more features, which would make it closer to a exhaustive product.

Note:

Godot is constantly being updated. If any information is incorrect or outdated, please correct it. Godot 4.x should not be the only focus of the book, since other people still use Godot 3.x as well.

Any code snippets should default to the Godot 4.2+ syntax, unless the page is about an earlier version.
Category:Books with print version#Guide%20to%20the%20Godot%20game%20engine
Getting started [edit]
Installation
What is a node?
Programming
Resources and importing
Signals and methods
Your first game
Making it work
Debugging
Input
Physics
Saving and loading
Multiplayer
Making it look good
UI skinning
Animation
Advanced help
Servers (singletons)
Platform specific
Optimisation
Encryption
Exporting
Plugins
Miscellaneous
Helpful links
Authors and contributors
Print version
Clipboard

To do:

  1. Finish/add incomplete chapters
  2. Proofread
  3. Expand the GDScript section (last thing to be done)
Category:Wikibooks pages with to-do lists

Introduction

What even is Godot?

Godot is, like explained above, an open-source game engine. The advantage of being open-source is Anybody can edit its source code! If it doesn't do quite what you need it to do, just crack it open and see what new tools you can make. If it's good enough, you can even submit the code to be part of the next official update! Another advantage is what you make (be it an app or a game or a plugin) is completely yours! No strings attached, no royalties, no limitation of license... Exactly how game development should be!

However, console-specific code cannot be compiled with open-source code. You need to pay somebody else who can compile it for you, and this can be costly. Then-again, most engines have the same issue. And several games made with this engine have been released onto a console.

In addition, Godot's API is not like most game engines, where you can find things like "entities" and "props". Everything is done with nodes, Godot's building blocks, which can be put together in many ways to get your entity or prop. Each node may also have a script. While highly flexible, it has some performance cost.

Godot's "Create New Node" popup with the "KinematicBody2D" node highlighted.
Godot's "Create New Node" popup showing a part of the node family.

Godot has many nodes, but this book is not the place to list each and every one. That's what Godot's official class reference is for. This book will focus on what Godot is, help you achieve your goals and provide helpful links for those who want more info can go to.

What inspired me to start this book?

I was shocked that Wikibooks had no Godot guides. It had guides for Ada, LolGraphics, C++, C#, HTML, JavaScript and more, but not one on either Godot or a game engine (not that I could find anyway).

Godot guides out there had very little I didn't know, and some were books that cost... money. Well, a wiki's belief is that all information should be free.


Guide to the Godot game engine

Getting started [edit]
Installation
What is a node?
Programming
Resources and importing
Signals and methods
Your first game
Making it work
Debugging
Input
Physics
Saving and loading
Multiplayer
Making it look good
UI skinning
Animation
Advanced help
Servers (singletons)
Platform specific
Optimisation
Encryption
Exporting
Plugins
Miscellaneous
Helpful links
Authors and contributors
Print version


back to top

Category:Book:Guide to the Godot game engine Category:Book:Wikibooks Stacks/Books Category:Books by completion status/all books Category:Books nearing completion Category:Books with print version Category:Department:Computing/all books Category:Department:Miscellaneous/all books Category:Department:Recreational activities/all books Category:Shelf:2D graphics software Category:Shelf:2D graphics software/all books Category:Shelf:Computer software/all books Category:Shelf:Electronic games/all books Category:Shelf:Games/all books Category:Shelf:Multimedia software/all books Category:Shelf:Open source software Category:Shelf:Open source software/all books Category:Shelf:Trades/all books Category:Shelf:Video game development Category:Shelf:Video game development/all books Category:Subject:2D graphics software Category:Subject:2D graphics software/all books Category:Subject:Books by subject/all books Category:Subject:Computer software/all books Category:Subject:Computing/all books Category:Subject:Electronic games/all books Category:Subject:Games/all books Category:Subject:Miscellaneous/all books Category:Subject:Multimedia software/all books Category:Subject:Open source software Category:Subject:Open source software/all books Category:Subject:Recreational activities/all books Category:Subject:Trades/all books Category:Subject:Video game development Category:Subject:Video game development/all books Category:Wikibooks pages with to-do lists