EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

StorybookDefinition

A picture book played full screen: pages of painted parallax layers under a slow camera, cross-faded, narrated per language with subtitles, music and page sounds.

Signature

{ blackout_ms: number, crossfade_ms: number, depth_zoom_permille: number, fade_out_ms: number, id: ContentId, lead_ms: number, mix: StorybookMix, music: AudioAssetId, pages: {StorybookPage}, parallax_permille: number, parallax_portrait_permille: number, tail_ms: number, tracks: {StorybookTrack} }

Fields

NameTypeMeaning
blackout_msnumberTime the picture takes to darken to black, from the start of the fade-out; at most fade_out_ms.
Range: 0…60000; Unit: ms
crossfade_msnumberCross-fade from one page into the next, from the next page's start.
Range: 0…10000; Unit: ms
depth_zoom_permillenumberExtra zoom of a layer per unit of depth (nearer layers a little larger).
Range: 0…1000; Unit: permille
fade_out_msnumberMusic and sounds fade out linearly over this time before the end; the picture starts to darken with them.
Range: 0…60000; Unit: ms
idContentIdPackage-qualified identity; unique within its declaring namespace.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$
lead_msnumberTime the first page and the music run before the narration starts.
Range: 0…60000; Unit: ms
mixStorybookMixLevels of narration, music and page sounds.
musicAudioAssetIdMusic under the whole book, from its first moment; it fades with the ending.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: asset:audio
pages{StorybookPage}Pages in reading order; their start times come from each language track.
Items: 1…32
parallax_permillenumberCamera travel against layer depth for pages that name no own parallax.
Range: 0…4000; Unit: permille
parallax_portrait_permillenumberParallax on a portrait screen for pages that name none: a layer travels the camera's way times 1 + (depth − 1) × this, so all layers move nearly together across the narrow slice.
Range: 0…4000; Unit: permille
tail_msnumberTime the last page stays after the narration's outro ends.
Range: 0…60000; Unit: ms
tracks{StorybookTrack}Narration per language; the player's language picks one, else the package's base language.
Items: 1…16