The package
이 콘텐츠는 아직 번역되지 않았습니다.
A finished experience is a package: a folder the launcher creates for you and keeps up to date.
my-race/├── manifest.json the experience's identity and what its scripts may use├── world/│ ├── main.gdw the world document (spawn points, frames, texts)│ └── main.gdl the Geometry Dash level├── scripts/ optional│ ├── server/main.js│ ├── client/main.js│ └── build/main.js├── ui/index.html optional: a web UI├── art/ sounds/ optional: your pictures (gdmp.sprites) and sounds (gdmp.audio)└── store.json optional: game passes and developer productsmanifest.json
Section titled “manifest.json”{ "formatVersion": 2, "id": "my-race", // lower case letters, digits, '-'; unique "version": 1, // bump it when you publish a change "name": "My Race", "description": "...", "creator": "you", "runtime": 2, "maxPlayers": 16, "world": "world/main.gdw", "level": "world/main.gdl", "server": { "entry": "scripts/server/main.js" }, // optional "client": { "entry": "scripts/client/main.js" }, // optional "web": { "entry": "ui/index.html" }, // optional: a web UI "build": { "entry": "scripts/build/main.js" }, // optional: tools for Build mode "capabilities": ["players", "world", "level"] // what the scripts may use}Capabilities
Section titled “Capabilities”| Capability | Gives the scripts |
|---|---|
players |
gdmp.players, gdmp.zones, touch |
net |
gdmp.net, gdmp.state, gdmp.economy |
playerControl |
moving, freezing and hiding players (gdmp.players.teleport…, gdmp.player), gdmp.nametags |
levelControl |
gdmp.level.spawn: firing GD’s spawn groups |
level |
reading the GD level (and editing it in Build) |
world / worldWrite |
reading / editing the world document |
input |
gdmp.input: the player’s buttons |
nativeUI |
gdmp.ui and gdmp.sprites |
webUI |
gdmp.web: web pages in the game |
data |
gdmp.data: saving between sessions |
The exact table, per script, is in How scripts work.
store.json
Section titled “store.json”{ "items": [ { "id": "vip", "kind": "pass", "name": "VIP", "description": "...", "price": 100 } ] }The launcher’s Store editor writes it for you. See Selling things.
