English
Create a cinematic
You write a short scene: the trailer of a world, the start or the end of a quest, the end of every daily quest, or the arrival of a store item. The player can always skip it; skipping shows its recap in text, so they still know what just happened. A scene already seen does not play again by itself.
Before you begin 15 minutes
- The
altacommand (see Install the CLI). - A quest to attach a scene to: one of the game, or one of your quest pack.
Create the file
alta new cinematicswrites a file of scenes that already passesalta lint: a trailer, a scene at the end of a quest, and one at the end of every daily quest.Terminalshalta new cinematics my-scenesOutputtextcreated my-scenes/cinematics.json (cinematics, id my-scenes) next: edit the texts, then `alta lint my-scenes`, then `alta dev my-scenes`Write a scene
A scene has a
titleand arecap, the lines read when it is skipped. It then plays, by preference, itsvideo, else itspage, else itsshots, else the recap as a narrated card. Shots are played by the game itself, each with a durationdurof 0 to 30 seconds, 120 seconds at most for a scene:kindWhat it does carda title card ( title,text)panmoves the camera toa thing of the map,centre,edgeorwide, with azoomlinea line said by an agent ( who,text)fxan effect: burst,flash,rings,letterboxreveala thing of the map appears ( entity)my-scenes/cinematics.jsonjson{ "title": { "en": "Too many downloads", "fr": "Trop de téléchargements" }, "recap": [ { "en": "The guardian proposes a rule for old downloads.", "fr": "Le gardien propose une règle pour les vieux téléchargements." } ], "shots": [ { "kind": "pan", "dur": 2, "to": "agent:guardian", "zoom": 1.6 }, { "kind": "line", "dur": 4, "who": "guardian", "text": { "en": "Your downloads pile up. Let's choose a rule.", "fr": "Tes téléchargements s'entassent. Choisissons une règle." } } ] }Attach it to a quest
Under
quests, give theuidof a quest and the scene that opens it (intro), closes it (outro), or both. The quest must exist: in the game, or in a file of the same folder. The two quests named here come from the quest pack examples: savecore.fragment.jsonandfocus.game.jsoninmy-scenestoo, or put theuidof a quest of your own.my-scenes/cinematics.jsonjson{ "core.tidy-downloads": { "intro": "tidy-intro", "outro": "tidy-outro" }, "focus.quiet-hours": { "outro": "quiet-outro" } }Play it for a type of quest or an item
typesgives the closing scene of every quest of one type (repair,daily…), used when the quest has nooutroof its own.itemsgives the scene played when a store item appears, by the item's id.trailernames the scene that opens the world.my-scenes/cinematics.jsonjson{ "repair": "fixed", "daily": "day-done" }examples/cinematics/cinematics.json#/types
my-scenes/cinematics.jsonjson{ "title": { "en": "A new place appears", "fr": "Un nouveau lieu apparaît" }, "recap": [ { "en": "The evening pack adds its own quests.", "fr": "Le pack du soir ajoute ses propres quêtes." } ], "shots": [ { "kind": "pan", "dur": 2, "to": "edge" }, { "kind": "reveal", "dur": 2, "entity": "module:evening-pack" }, { "kind": "fx", "dur": 1, "name": "rings" } ] }Check it
alta lintmakes sure every name points at a scene, everyuidat a quest it knows, every type at a type of quest, and that every scene has its recap.Terminalshalta lint my-scenesOutputtextok my-scenes/cinematics.json (cinematics) ok my-scenes/core.fragment.json (quests) ok my-scenes/focus.game.json (game) 3 checked, 0 errors, 0 warnings
Try it
alta dev my-scenesOpen the address it prints: your trailer plays when the world opens, in every world. Skip it to read its recap.
Demo: nothing is written on your machine.
Pitfalls
| Do | Avoid |
|---|---|
| A recap that says what happened, in one or two lines | A recap that repeats the title |
A uid of a quest of the game or of the same folder | A quest the check cannot see: refused |
A video on a path the game serves, or https:// | Any other address: refused |
| Short shots: a scene the player watches to the end | A scene over 120 seconds: refused |
Known limits, said plainly: a pan towards a thing that does not exist on the map is not seen by the check. A store item can name its scene in two places (the item and the scenes of a universe): keep it in one.
Go further
- Cinematics: every field of a scene and a shot.
- Universes: a universe brings its own scenes.
- Errors: each rule of
alta lintfor scenes.