Skip to main content

CutsceneSceneSchema

@zylem/game-lib


@zylem/game-lib / cinematics / CutsceneSceneSchema

Variable: CutsceneSceneSchema

const CutsceneSceneSchema: TObject<\{ end: TNumber; id: TString; name: TString; start: TNumber; transitionIn: TObject<\{ duration: TNumber; easing: TUnion<[TLiteral<"linear">, TLiteral<"easeIn">, TLiteral<"easeOut">, TLiteral<"easeInOut">]>; type: TUnion<[TLiteral<"cut">, TLiteral<"fade">, TLiteral<"wipe">, TLiteral<"radial">, TLiteral<"noise">, TLiteral<"cells">]>; \}>; \}>

Defined in: packages/game-lib/src/lib/cinematics/cutscene-definition.ts:49

@zylem/game-lib/cinematics public API.

In-game cutscenes authored in Creator's Director mode: a timeline of scenes, cameras (static, dolly, follow) placed as shots with keyframes and blends, plus event and audio tracks. createCutscenePlayer drives a live stage's camera through the camera pipeline and fires the gameplay hooks.