Manifest reference

Parallax sets

A parallax set names a background's layers, far to near, for pixelkiln parallax preview and export. It changes nothing about generation. The assets it names are planned, generated and locked as usual. A set id is letters, digits, - and _, since it names folders and a Godot node. The parallax guide walks through building one.

Set fieldRequiredMeaning
viewyesThe game's view in pixels, [width, height].
travelnoHow far the camera moves sideways across the level. Defaults to twice the view's width.
climbnoHow far the camera climbs. Defaults to 0.
layersyes1 to 32 layers, far first.
Layer fieldRequiredMeaning
asset / file / skyone of themA manifest asset, read from the lockfile once generated; a picture on disk, relative to the manifest; or flat colour bands, top to bottom, with a dithered step between neighbours. A one-colour sky is a flat fill.
stylewhen the asset has severalWhich style's generation an asset layer uses.
namenoThe layer's name in exports. Defaults to the asset id, the file name, or sky.
speedyesThe fraction of the camera's sideways movement the layer moves, 0 to 4: 0 stays put, 1 moves with the level, above 1 is nearer than the level.
speedYnoThe same for the climb. Defaults to speed when the set climbs and to 1 when it does not.
xnoThe layer's left edge. The canvas starts at the view's top-left when the camera starts.
bottomnoThe canvas row the layer's foot sits on. Defaults to the view's height.
extendnoRepeat the bottom row downward: true to the foot of the view, or a number of rows.
repeatnoRepeat sideways. Defaults to true.
repeatYnoRepeat vertically, for an endless climb.
"parallax": {
  "dusk": {
    "view": [384, 216],
    "travel": 480,
    "layers": [
      { "sky": ["#405e9c", "#a596b9", "#f9b59c"], "speed": 0 },
      { "asset": "far-range", "bottom": 150, "speed": 0.125, "extend": true },
      { "file": "finished/near.png", "bottom": 256, "speed": 1 }
    ]
  }
}

The manifest refuses an asset it does not declare, a style the asset is not generated under, and a layer name used twice.