/
What a server does
What a game’s own server is for, and who decides what it does.
What a server is for
A game can have its own server: a computer on the internet, always on, that every copy of the game can reach. Your agent writes its code; you decide whether it runs and what it may spend.
A server does what one phone can’t:
- Saves and leaderboards that follow a player, kept in the game’s database: tables on the server that keep data between plays.
- Live rooms: players together in real time.
- Players’ files, such as a level a player made.
- Push notifications to players’ phones, such as “your turn”.
- Purchases and ad rewards, checked before the player gets anything.
Who does what
Your agent writes the server’s code and tests it on your computer, for free. It never turns anything on, changes a size, spends money or publishes. The workspace’s owners and admins do those, on the game’s Server page, under the game in the panel’s sidebar:
- turn on the server, then its database, players’ files or push, and pick each one’s size;
- add secret keys for outside services, with a test value and a live value;
- publish the code to players, or go back to an earlier version;
- let the agent read live players’ data, which stays off until you allow it;
- confirm that a children’s game’s live rooms, files and push are made to be safe: they stay off until then.