Skip to content

alta.cinematics/0.1: trailers and scenes ​

Generated from docs/standards/alta-cinematics-0.1.md · npm run docs:gen

Code: core/cinematics/cinematics.ts. Tests: tests/contracts.test.ts. Files: universes/<id>/cinematics.json, fallback content/cinematics.json (both loaded by client/app/universes.ts; absent files are fine).

Cinematics { schema, trailer?, quests?: { uid: { intro?, outro? } }, types?: { questType: sceneId },
             items?: { itemId: sceneId }, scenes: { id: Cutscene } }
Cutscene   { title, recap: Text[] (required), video?, page?, shots?: Shot[] }
Shot       card {dur, title?, text?} | pan {dur, to: entityId|"centre"|"edge"|"wide", zoom?}
           | line {dur, who?: agent role, text} | fx {dur, name: burst|flash|rings|letterbox} | reveal {dur, entity}

A scene plays its video if it can, else its page (same origin, in a frame), else its shots, else its recap (playMode). "Skip" always shows the recap. A scene seen (Save.seen) never plays again by itself. outroOf(uid, type, cin, legacy) picks a quest's outro: the quest's own, else its type's, else the legacy table.

checkCinematics(c, questUids, entityKinds, entityIds?) refuses: unknown quest, type or scene references; a scene without recap; video that is neither a served path nor https; page not same-origin; unknown shot kinds or fx; a scene longer than MAX_SCENE_S (120 s). Shot kinds beyond the five are drawn by registerShot (client).

Alta OS is open source (MIT).