Guide
The guide explains how games are put together and everything a layer can do. If you're new, start with Learn and come back here when you want the whole picture.
The short version
You make a game by building a layer on someone else's game, or by starting a
root of your own. A layer can change only what the root opened and no layer
below it sealed, and it talks to the game through one small API called
Variations.
| You can | You cannot |
|---|---|
| Change any rule the root opened | Change a rule a layer below you sealed, or one the root never opened |
| Add rules, zones, items and slot fillers of your own, where the root opened that kind | Open something yourself. Only the root's open list counts |
| Replace a zone, an item or a slot by registering one with the same name | Remove a zone or an item, or replace a file a layer below you shipped |
| Read every rule, place any item, hear every event and send any event | Stop another layer hearing or sending an event |
| Seal anything, yours or your parent's, for games built on yours | Unseal what a layer below you sealed |
| Use code from the layers below you | |
| Ship scripts, scenes, resources, shaders and text | Ship images, sound, models or anything else that is not text |
| Use the whole of Godot's nodes, physics, drawing and input inside your game | Use files, the network, threads, the operating system or engine settings |
Pages
- How a game is built: layers, roots and the manifest.
- The API: rules, zones, items, slots and events.
- Extending a game: what a child layer can do.
- Starting your own game: roots, and deciding what others may change.
- Limits: what you cannot do, and what stops you.
- Checking and playing: running your game on a computer.
- A worked example: Tall Meadow, start to finish.
- Game pages: finding out what a game offers.
- Where the edges are: what is still soft.
For the exact name and arguments of every call, see the Reference.