Guide to the Godot game engine

Godot game engine logotype

This book will teach you about the free and open source Godot engine. Godot, like Unreal, Unity and other common game engines, have 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 has a never-ending wish to add more features, which would make it closer to a exhaustive product.

Nuvola apps kwrite.png
Note:

Godot is constantly being updated. If any information is incorrect or outdated, please correct it. Especially considering I only have access to Godot 3.2. Godot 4 should not be the focus of this book yet - it has not yet been released officially as stable.

In addition, I am unable to get a screenshot of anything described in this book. If you are a Godot user, please consider contributing some images. Thanks!

This book will often have bits of code that must be replaced before used. Code to be replaced goes in this format: "<thing to replace>". You must replace all of it with what it says to replace with. Even the crocodile brackets.

ContentsEdit

  1. On this page
    1. Introduction
  2. Getting started
    1. What is a node
    2. Programming
      1. 1. GDScript
    3. Resources and importing
    4. Signals and methods
    5. Your first game
  3. More advanced things

    Warning: these are ment only for skilled Godot users, or those who want to go one step further.
    1. Input
    2. Physics
    3. Saving and loading
    4. Servers
    5. Platform specific
    6. Encryption
    7. Multiplayer
    8. Exporting
    9. Plugins
  4. Appendix
    1. Helpful links
 

To do:

  1. Finish/add incomplete chapters
  2. Proofread
  3. Expand the GDScript section (last thing to be done)


IntruductionEdit

What even is Godot?Edit

Picture the scene: An unprofessional, ugly, robot-like logo, a funny name that nobody - not even the developers themselves - can pronounce (ga-DOH... No wait, it's god-AT... Or maby go-DOH? Or just go-DOT..?). Unfortunately, that is how some people seem to look at this amazing piece of software.

Godot is, like explained above, an open-source game engine. The advantage of being open-source is (Does this seem strangely familiar to something you read recently?) 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 to compile it for you, and this can be costly.

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.


 

To do:
image needed: A scene tree and/or the add node popup


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 archive your goals and provide helpful links for those who want more info can go to.

What inspired me to start this book?Edit

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!? Why get those when you can have a free book, anyway?

Well, hello Wikibooks. Free books are all over the place. So many, it could possibly take a lifetime to read them all! And now there is at least one more book. And you're reading it, right now.