Aller au contenu
En Markdown

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.

Standardalta.cinematics/0.1
Fichiercinematics.json (dans un dossier d'univers)
Le créeralta new cinematics my-scenes
Le vérifieralta lint my-scenes
Schéma JSONalta.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"requis

The standard: alta.cinematics/0.1.

trailerstringfacultatif

The scene played as the world's trailer, by id.

questsmap of objectfacultatif

Scenes for given quests, by quest uid.

quests.<id>.introstringfacultatif

The scene played when the quest starts.

quests.<id>.outrostringfacultatif

The scene played when it is done.

typesmap of stringfacultatif

The outro of every quest of a type, by quest type.

itemsmap of stringfacultatif

The scene played when a chart is added, by chart id.

scenesmap of scenerequis

The 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.

titletextrequis

The scene's title.

recaptext[]requis

The scene in a few lines: shown when it is skipped, and when nothing else can play.

at least 1 items

videostringfacultatif

A video: a path served by the game (/…) or an https:// address.

matches ^(/[^/]|https://)

pagestringfacultatif

A page of the game to show in a frame, by path (/…).

matches ^/[a-zA-Z0-9]

shotsshot[]facultatif

The shots, played in order.

Plan ​

kind dit ce qu'est le plan ; chaque sorte a ses propres champs.

kindenumrequis

What the shot is; each kind has its own fields.

Valeurscardpanlinefxreveal

durnumberrequis

How long it lasts, in seconds (at most 30).

more than 0 to 30

titletextfacultatif

si kind vaut card

A card's title.

texttextfacultatif

si kind vaut card ou line

A card's text, or what an agent says (line).

tostringrequis

si kind vaut pan

Where a pan goes: an entity id, centre, edge or wide.

zoomnumberfacultatif

si kind vaut pan

The zoom of a pan, from 0.3 to 3.

0.3 to 3

whoenumfacultatif

si kind vaut line

The agent who speaks a line, by role.

Valeursdaemonarchitectoperatorreviewerguardian

nameenumrequis

si kind vaut fx

The effect: burst, flash, rings or letterbox.

Valeursburstflashringsletterbox

entitystringrequis

si kind vaut reveal

The entity a reveal shows, by id.

Règles et erreurs ​

Chaque règle que alta lint applique aux cinématiques, avec sa section sur la page des erreurs.

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"
        }
      ]
    }
  }
}

examples/cinematics/cinematics.json

Versions ​

VersionCe qu'elle ajouteLue par le jeu
alta.cinematics/0.1Bande-annonce, scènes, plans, et quand ils passentactuelle

Guides qui l'utilisent ​

Le standard, le SDK et la CLI sont sous Apache-2.0 ; Alta System OS et Alta World sous FSL-1.1-ALv2.