Français
Cinématiques
Un fichier de cinématiques contient la bande-annonce et les scènes d'un monde, et dit quand elles passent : quand une quête commence ou se termine, après chaque quête d'un type, ou quand un article du store est ajouté. Une scène passe sa vidéo si elle peut, sinon sa page, sinon ses plans, et a toujours un résumé pour le joueur qui la passe.
| Standard | alta.cinematics/0.1 |
| Fichier | cinematics.json (dans un dossier d'univers) |
| Le créer | alta new cinematics my-scenes |
| Le vérifier | alta lint my-scenes |
| Schéma JSON | alta.cinematics.schema.json |
Exemple minimal
Une bande-annonce de deux plans : un carton titre, puis la caméra va au centre de la carte.
cinematics.json
json
{
"schema": "alta.cinematics/0.1",
"trailer": "trailer",
"scenes": {
"trailer": {
"title": {
"en": "Your machine, as a world",
"fr": "Ta machine, comme un monde"
},
"recap": [
{
"en": "What you see is what really runs on your machine.",
"fr": "Ce que tu vois est ce qui tourne vraiment sur ta machine."
}
],
"shots": [
{
"kind": "card",
"dur": 3,
"title": {
"en": "Your machine, as a world",
"fr": "Ta machine, comme un monde"
}
},
{
"kind": "pan",
"dur": 2,
"to": "centre",
"zoom": 1.4
}
]
}
}
}examples/minimal/cinematics.json
Champs
Référence en anglais : les descriptions des champs sont celles du schéma JSON, que ton éditeur affiche aussi.
Cinématiques
Le fichier lui-même.
schema"alta.cinematics/0.1"requisThe standard:
alta.cinematics/0.1.trailerstringfacultatifThe scene played as the world's trailer, by id.
questsmap of objectfacultatifScenes for given quests, by quest uid.
quests.<id>.introstringfacultatifThe scene played when the quest starts.
quests.<id>.outrostringfacultatifThe scene played when it is done.
typesmap of stringfacultatifThe outro of every quest of a type, by quest type.
itemsmap of stringfacultatifThe scene played when a chart is added, by chart id.
scenesmap of scenerequisThe scenes, by id.
Scène
Une scène dure 120 secondes au plus. « Passer » montre toujours son résumé, et une scène déjà vue ne repasse jamais d'elle-même.
titletextrequisThe scene's title.
recaptext[]requisThe scene in a few lines: shown when it is skipped, and when nothing else can play.
at least 1 items
videostringfacultatifA video: a path served by the game (
/…) or anhttps://address.matches
^(/[^/]|https://)pagestringfacultatifA page of the game to show in a frame, by path (
/…).matches
^/[a-zA-Z0-9]
Plan
kind dit ce qu'est le plan ; chaque sorte a ses propres champs.
kindenumrequisWhat the shot is; each kind has its own fields.
Valeurs
cardpanlinefxrevealdurnumberrequisHow long it lasts, in seconds (at most 30).
more than 0 to 30
titletextfacultatifsi
kindvautcardA card's title.
texttextfacultatifsi
kindvautcardoulineA card's text, or what an agent says (
line).tostringrequissi
kindvautpanWhere a
pangoes: an entity id,centre,edgeorwide.zoomnumberfacultatifsi
kindvautpanThe zoom of a pan, from 0.3 to 3.
0.3 to 3
whoenumfacultatifsi
kindvautlineThe agent who speaks a
line, by role.Valeurs
daemonarchitectoperatorreviewerguardiannameenumrequissi
kindvautfxThe effect:
burst,flash,ringsorletterbox.Valeurs
burstflashringsletterboxentitystringrequissi
kindvautrevealThe entity a
revealshows, by id.
Règles et erreurs
Chaque règle que alta lint applique aux cinématiques, avec sa section sur la page des erreurs.
cinematics.schemaA cinematics file must sayalta.cinematics/0.1.cinematics.scenesThe file needs ascenesobject.cinematics.scene-refA trailer, quest or type points at a scene that does not exist.cinematics.quest-refA scene is attached to a quest that does not exist.cinematics.typeA scene is attached to an unknown quest type.cinematics.item-idA scene is attached to a malformed chart id.scene.idA scene id is malformed.scene.titleA scene needs a title.scene.recapA scene needs a text recap, shown when the player skips it.scene.videoThe scene's video is not a served path or an https address.scene.pageThe scene's page is malformed.scene.shotsThe scene'sshotsare malformed.scene.lengthThe scene is too long.scene.shapeThe scene is malformed.shot.kindA shot'skindis unknown.shot.durA shot's duration is out of bounds.shot.textA line shot needs its text.shot.nameAn effect shot names an unknown effect.shot.toA pan shot needs where to go.shot.zoomA shot's zoom is out of bounds.shot.entityA reveal shot needs the entity it reveals.shot.titleA card shot needs a title.shot.shapeA shot is malformed.
Exemple complet
Une bande-annonce, l'intro et la fin d'une quête, la fin d'un type et la scène d'un article
cinematics.json
json
{
"schema": "alta.cinematics/0.1",
"trailer": "trailer",
"quests": {
"core.tidy-downloads": {
"intro": "tidy-intro",
"outro": "tidy-outro"
},
"focus.quiet-hours": { "outro": "quiet-outro" }
},
"types": { "repair": "fixed", "daily": "day-done" },
"items": { "evening-pack": "pack-arrives" },
"scenes": {
"trailer": {
"title": {
"en": "Your machine, as a world",
"fr": "Ta machine, comme un monde"
},
"recap": [
{
"en": "What you see is what really runs on your machine.",
"fr": "Ce que tu vois est ce qui tourne vraiment sur ta machine."
},
{
"en": "Quests move the real setup forward.",
"fr": "Les quêtes font avancer la vraie configuration."
}
],
"video": "/media/trailer/neutral.mp4"
},
"tidy-intro": {
"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."
}
}
]
},
"tidy-outro": {
"title": {
"en": "A tidy machine",
"fr": "Une machine rangée"
},
"recap": [
{
"en": "Each week, old downloads follow your rule.",
"fr": "Chaque semaine, les vieux téléchargements suivent ta règle."
}
],
"page": "/film/neutral/tidy.html"
},
"quiet-outro": {
"title": {
"en": "Quiet hours",
"fr": "Heures calmes"
},
"recap": [
{
"en": "Nothing disturbs you during your quiet hours.",
"fr": "Rien ne te dérange pendant tes heures calmes."
}
],
"shots": [
{
"kind": "fx",
"dur": 1,
"name": "flash"
},
{
"kind": "card",
"dur": 3,
"title": {
"en": "Quiet hours on",
"fr": "Heures calmes activées"
},
"text": {
"en": "The operator holds the door.",
"fr": "L'opérateur tient la porte."
}
}
]
},
"fixed": {
"title": { "en": "Fixed", "fr": "Réparé" },
"recap": [
{
"en": "What had stopped runs again.",
"fr": "Ce qui s'était arrêté tourne à nouveau."
}
]
},
"day-done": {
"title": {
"en": "Done for today",
"fr": "Fait pour aujourd'hui"
},
"recap": [
{
"en": "This quest comes back tomorrow.",
"fr": "Cette quête revient demain."
}
]
},
"pack-arrives": {
"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"
}
]
}
}
}Versions
| Version | Ce qu'elle ajoute | Lue par le jeu |
|---|---|---|
alta.cinematics/0.1 | Bande-annonce, scènes, plans, et quand ils passent | actuelle |