Content packs, forks and remixes
Players and creators can extend a game they did not make, if its owner allows it (ADR 0015, ADR 0023).
What the game’s owner decides
Section titled “What the game’s owner decides”In game/game.json:
"permissions": { "expansions": { "allowed": true, "contentTypes": ["levels", "prefabs", "assets"], "menu": true }, "remix": "remix"}expansions.allowed: people may make content packs for this game.contentTypeslimits what packs may contain (scenes are always allowed).menu: falseremoves the automatic Expansions item from the title menu; open thepacks:menuscene from your own menu or a rule instead.remix:none(no copies),fork(private copies with credit, which cannot be published) orremix(copies may be published as new games, with credit).
The platform reads these from the game’s live release.
Making a pack
Section titled “Making a pack”-
On the game’s page, choose Make a pack, then give it a title and an address. The address is also the pack’s
id. -
The editor opens on the pack’s files, under
pack/:pack.jsonlevels/,scenes/andprefabs/assets/(PNG, WebP, OGG, MP3, WAV, WOFF2)audio/(synth sounds)
You start with a copy of the game’s first level and its scene.
-
Edit levels in the visual level editor. The game’s tilesets and prefabs are there to use; they are read from its live release, and you can read them but not change them. Play here previews the game with your pack inside it.
-
Release checks the pack against the game’s live release (every document, and every reference to a prefab, scene or level). The release then waits in the owner’s queue.
A pack is data and media only: no code (ADR 0015). Packs can use everything the game exposes as data: its prefabs, built-in components, rule actions, HUD and menus.
Use plain ids in a pack. When a pack is loaded, every id it defines becomes <pack id>:<id>: scenes, levels,
prefabs, items, asset keys and the asset bundle.
References inside the pack find the pack’s own ids first, then the game’s. So a pack can:
- place the game’s
coinprefab; - extend the game’s
player; - send the player back to the game’s
titlescene.
It can never replace the game’s own content. One more rule applies to component data: a string value that equals an id the pack defines counts as a reference to it.
pack.json example:
{ "schemaVersion": "0.1", "id": "ice-caves", "version": "1.0.0", "title": "Ice Caves", "authors": [{ "name": "Pat" }], "target": { "gameId": "platformer", "gameVersion": ">=0.1.0" }, "contents": { "start": ["cave-1"], "levels": [{ "id": "cave-1", "path": "levels/cave-1.json" }], "scenes": [{ "id": "cave-1", "path": "scenes/cave-1.json" }], "prefabs": [{ "id": "ice-spike", "path": "prefabs/ice-spike.json" }], "assets": [{ "key": "ice.tiles", "type": "image", "src": "assets/ice-tiles.png", "mediaType": "image/png" }] }}target.gameId is the game’s manifest id. contents.start lists the scenes the Expansions menu offers; it
defaults to the first scene.
Review and play
Section titled “Review and play”-
Review. The game’s owner sees submitted versions on the game’s management page, under Pack queue. They can Try it, then approve or reject it. A rejection can include a note, which the creator sees on their pack’s page. The newest approved version is the one players get.
-
Players opt in. On the game page, Expansions lists the approved packs. Each pack can be turned on or off; the choice is saved to the player’s account, or kept in the browser for guests.
Turned-on packs show up in the game’s title menu under Expansions. If a pack fails to load or breaks the game, the game starts without packs.
-
Moderation. Packs can be reported like games, and moderators can take them down.
Forks and remixes
Section titled “Forks and remixes”Fork (or Remix) on a game’s page copies the game’s live release into a new game of yours. Its history and drafts are not copied.
The new game:
- records where it came from:
lineageingame.jsonand an attribution line on its page; - links back to the original.
A fork, made when the original allows only fork, stays private. A remix can be published.