Aller au contenu
En Markdown

Univers ​

Un univers habille le même jeu de ses propres mots, couleurs, dessins et textes : une quête reste la même quête, le monde autour change. Un univers n'est que des données : pas de code, pas d'adresse, rien qui tourne.

Standardalta.universe/0.1 (ses dessins : alta.art/0.1)
Fichierun dossier : universe.json, vocabulary.json, palette.json, art.json, copy/en.json, copy/fr.json, onboarding.json, cinematics.json
Le créeralta new universe my-world
Le vérifieralta lint my-world
Schéma JSONalta.universe.schema.json

Chaque fichier du dossier est un champ de l'univers ci-dessous : universe.json est son manifest, vocabulary.json son vocabulary, et ainsi de suite. Un article du store porte le même univers en un seul objet, dans son champ universe.

Exemple minimal ​

Un univers a besoin de toutes ses parties pour être joué : un mot pour chaque chose de la carte, chaque couleur, un glyphe pour chaque sorte. Le dossier commence par son manifeste : qui est l'univers, et les mots qui sont à lui.

my-world/universe.json
json
{
  "id": "loomhollow",
  "order": 9,
  "name": "Loomhollow",
  "tagline": "Every mind is a tapestry.",
  "version": "0.1.0",
  "languages": ["en", "fr"],
  "fonts": { "display": "serif", "body": "rounded" },
  "distinctive": [
    "loomhollow",
    "spindle",
    "bobbin",
    "shuttlewing",
    "knotwork",
    "moth"
  ]
}

examples/universe/universe.json

Le dossier entier, chaque fichier rempli, est dans examples/universe ; alta new universe en écrit un que tu peux changer.

Champs ​

Référence en anglais : les descriptions des champs sont celles du schéma JSON, que ton éditeur affiche aussi.

Univers ​

schema"alta.universe/0.1"requis

The standard: alta.universe/0.1.

manifestobjectrequis

Who the universe is.

manifest.idstringrequis

The universe's id: lowercase letters, digits and dashes.

matches ^[a-z][a-z0-9-]{1,31}$

manifest.ordernumberfacultatif

Where it comes in the list of universes.

manifest.namestringrequis

Its name; it must not be taken.

manifest.taglinestringfacultatif

One line that says what it is.

manifest.versionstringfacultatif

Its version.

manifest.languagesstring[]facultatif

The languages of its texts.

manifest.fontsobjectrequis

Its fonts, from the closed list (grotesk, serif, mono, rounded).

manifest.fonts.displayenumrequis

The font of the titles.

Valeursgroteskserifmonorounded

manifest.fonts.bodyenumrequis

The font of the texts.

Valeursgroteskserifmonorounded

manifest.distinctivestring[]requis

At least four words of its own, none of them a neutral word of the game.

at least 4 items

vocabularyobjectrequis

The universe's words for the things of the game.

vocabulary.kindsobjectrequis

A word for each kind of thing of the map.

vocabulary.kinds.coreobjectrequis

The universe's word for a thing of kind core.

vocabulary.kinds.core.labelstringrequis

The word, as the player reads it.

vocabulary.kinds.core.glossstringfacultatif

A short explanation of the word.

vocabulary.kinds.agentobjectrequis

The universe's word for a thing of kind agent.

vocabulary.kinds.agent.labelstringrequis

The word, as the player reads it.

vocabulary.kinds.agent.glossstringfacultatif

A short explanation of the word.

vocabulary.kinds.moduleobjectrequis

The universe's word for a thing of kind module.

vocabulary.kinds.module.labelstringrequis

The word, as the player reads it.

vocabulary.kinds.module.glossstringfacultatif

A short explanation of the word.

vocabulary.kinds.proposedobjectrequis

The universe's word for a thing of kind proposed.

vocabulary.kinds.proposed.labelstringrequis

The word, as the player reads it.

vocabulary.kinds.proposed.glossstringfacultatif

A short explanation of the word.

vocabulary.kinds.automationobjectrequis

The universe's word for a thing of kind automation.

vocabulary.kinds.automation.labelstringrequis

The word, as the player reads it.

vocabulary.kinds.automation.glossstringfacultatif

A short explanation of the word.

vocabulary.kinds.automation-orphanobjectrequis

The universe's word for a thing of kind automation-orphan.

vocabulary.kinds.automation-orphan.labelstringrequis

The word, as the player reads it.

vocabulary.kinds.automation-orphan.glossstringfacultatif

A short explanation of the word.

vocabulary.kinds.deviceobjectrequis

The universe's word for a thing of kind device.

vocabulary.kinds.device.labelstringrequis

The word, as the player reads it.

vocabulary.kinds.device.glossstringfacultatif

A short explanation of the word.

vocabulary.kinds.accountobjectrequis

The universe's word for a thing of kind account.

vocabulary.kinds.account.labelstringrequis

The word, as the player reads it.

vocabulary.kinds.account.glossstringfacultatif

A short explanation of the word.

vocabulary.kinds.interfaceobjectrequis

The universe's word for a thing of kind interface.

vocabulary.kinds.interface.labelstringrequis

The word, as the player reads it.

vocabulary.kinds.interface.glossstringfacultatif

A short explanation of the word.

vocabulary.kinds.marketobjectrequis

The universe's word for a thing of kind market.

vocabulary.kinds.market.labelstringrequis

The word, as the player reads it.

vocabulary.kinds.market.glossstringfacultatif

A short explanation of the word.

vocabulary.kinds.peerobjectrequis

The universe's word for a thing of kind peer.

vocabulary.kinds.peer.labelstringrequis

The word, as the player reads it.

vocabulary.kinds.peer.glossstringfacultatif

A short explanation of the word.

vocabulary.rolesobjectrequis

A word and a creature for each agent.

vocabulary.roles.daemonobjectrequis

The universe's word and creature for the daemon.

vocabulary.roles.daemon.labelstringrequis

The word, as the player reads it.

vocabulary.roles.daemon.glossstringfacultatif

A short explanation of the word.

vocabulary.roles.daemon.creaturestringrequis

The creature this agent is in the universe.

vocabulary.roles.architectobjectrequis

The universe's word and creature for the architect.

vocabulary.roles.architect.labelstringrequis

The word, as the player reads it.

vocabulary.roles.architect.glossstringfacultatif

A short explanation of the word.

vocabulary.roles.architect.creaturestringrequis

The creature this agent is in the universe.

vocabulary.roles.operatorobjectrequis

The universe's word and creature for the operator.

vocabulary.roles.operator.labelstringrequis

The word, as the player reads it.

vocabulary.roles.operator.glossstringfacultatif

A short explanation of the word.

vocabulary.roles.operator.creaturestringrequis

The creature this agent is in the universe.

vocabulary.roles.reviewerobjectrequis

The universe's word and creature for the reviewer.

vocabulary.roles.reviewer.labelstringrequis

The word, as the player reads it.

vocabulary.roles.reviewer.glossstringfacultatif

A short explanation of the word.

vocabulary.roles.reviewer.creaturestringrequis

The creature this agent is in the universe.

vocabulary.roles.guardianobjectrequis

The universe's word and creature for the guardian.

vocabulary.roles.guardian.labelstringrequis

The word, as the player reads it.

vocabulary.roles.guardian.glossstringfacultatif

A short explanation of the word.

vocabulary.roles.guardian.creaturestringrequis

The creature this agent is in the universe.

vocabulary.avatarobjectrequis

Its word for the player's avatar.

vocabulary.avatar.labelstringrequis

The word, as the player reads it.

vocabulary.avatar.glossstringfacultatif

A short explanation of the word.

vocabulary.levelobjectrequis

Its word for a level.

vocabulary.level.labelstringrequis

The word, as the player reads it.

vocabulary.level.glossstringfacultatif

A short explanation of the word.

vocabulary.xpobjectrequis

Its word for experience.

vocabulary.xp.labelstringrequis

The word, as the player reads it.

vocabulary.xp.glossstringfacultatif

A short explanation of the word.

vocabulary.edgeobjectrequis

Its word for a link between two things.

vocabulary.edge.labelstringrequis

The word, as the player reads it.

vocabulary.edge.glossstringfacultatif

A short explanation of the word.

vocabulary.worldobjectrequis

Its word for the world.

vocabulary.world.labelstringrequis

The word, as the player reads it.

vocabulary.world.glossstringfacultatif

A short explanation of the word.

paletteobjectrequis

Its colours, each #rrggbb.

palette.bgstringrequis

The background.

matches ^#[0-9a-fA-F]{6}$

palette.bg2stringrequis

The second background.

matches ^#[0-9a-fA-F]{6}$

palette.inkstringrequis

The text.

matches ^#[0-9a-fA-F]{6}$

palette.mutedstringrequis

The quiet text.

matches ^#[0-9a-fA-F]{6}$

palette.accentstringrequis

The accent.

matches ^#[0-9a-fA-F]{6}$

palette.okstringrequis

What works.

matches ^#[0-9a-fA-F]{6}$

palette.warnstringrequis

What needs a look.

matches ^#[0-9a-fA-F]{6}$

palette.badstringrequis

What is broken.

matches ^#[0-9a-fA-F]{6}$

palette.mockstringrequis

What is only shown (a demo).

matches ^#[0-9a-fA-F]{6}$

palette.panelstringrequis

The panels' background.

matches ^#[0-9a-fA-F]{6}$

palette.linestringrequis

The lines.

matches ^#[0-9a-fA-F]{6}$

copyobjectrequis

Its texts, by language; English is required.

copy.enobjectrequis

The texts in English.

copy.frobjectfacultatif

The texts in French.

artartrequis

Its art direction.

skinobjectfacultatif

The look of its panels.

skin.radiusnumberrequis

The corner radius of the panels, 0 to 24.

0 to 24

skin.bordernumberrequis

The border width, 0 to 3.

0 to 3

skin.panelAlphanumberrequis

How opaque the panels are, 0 to 1.

0 to 1

skin.fontenumrequis

The font of the panels.

Valeursgroteskserifmonorounded

skin.capsbooleanfacultatif

true: titles in capitals.

onboardingonboardingrequis

Its guide: the same beats and quests as the neutral guide, in its words.

cinematicscinematicsfacultatif

Its trailer and scenes.

Direction artistique ​

art.json : le sol, un glyphe pour le cœur, l'avatar, chaque agent et chaque sorte de chose, les liens et la lumière.

schema"alta.art/0.1"requis

The standard: alta.art/0.1.

groundobjectrequis

The ground of the map.

ground.styleenumrequis

The ground's style, from the closed list.

Valeursvoidgradientbandsgridnoise

ground.colorsenum | string[]requis

Its colours, 1 to 6.

1 to 6 items

ground.particlesobjectfacultatif

Particles drifting over the ground.

ground.particles.shapeenumrequis

Their shape, from the closed list.

Valeursdotstreakflakebubbleleafember

ground.particles.countintegerrequis

How many, 0 to 1500.

0 to 1500

ground.particles.driftnumber[]requis

Their drift, [x, y], each -50 to 50.

2 to 2 items

ground.particles.twinklebooleanfacultatif

true: they twinkle.

coreglyphrequis

How the core of the world is drawn.

avatarglyphrequis

How the player's avatar is drawn.

agentsobjectrequis

How each agent is drawn, by role.

agents.architectglyphrequis

How the architect is drawn.

agents.operatorglyphrequis

How the operator is drawn.

agents.reviewerglyphrequis

How the reviewer is drawn.

agents.guardianglyphrequis

How the guardian is drawn.

kindsobjectrequis

How each kind of thing of the map is drawn.

kinds.moduleglyphrequis

How a thing of kind module is drawn.

kinds.proposedglyphrequis

How a thing of kind proposed is drawn.

kinds.automationglyphrequis

How a thing of kind automation is drawn.

kinds.automation-orphanglyphrequis

How a thing of kind automation-orphan is drawn.

kinds.deviceglyphrequis

How a thing of kind device is drawn.

kinds.accountglyphrequis

How a thing of kind account is drawn.

kinds.interfaceglyphrequis

How a thing of kind interface is drawn.

kinds.marketglyphrequis

How a thing of kind market is drawn.

kinds.peerglyphrequis

How a thing of kind peer is drawn.

lightobjectfacultatif

The light over the map.

light.vignettenumberfacultatif

How dark the edges are, 0 to 1.

0 to 1

light.fognumberfacultatif

How much fog, 0 to 1.

0 to 1

Glyphe ​

shapeenumrequis

The shape, from the closed list.

Valeursorbringpolystarcrystalblobspireshellleafflamedropgear

sizenumberrequis

The size, 8 to 120.

8 to 120

fillenum | stringrequis

The fill colour.

strokeenum | stringfacultatif

The outline colour.

sidesintegerfacultatif

The number of sides of a polygon, 3 to 12.

3 to 12

glownumberfacultatif

How much it glows, 0 to 1.

0 to 1

spinnumberfacultatif

How it turns, -1 to 1.

-1 to 1

wobblenumberfacultatif

How it wobbles, -1 to 1.

-1 to 1

layerslayer[]facultatif

Up to three layers drawn over it.

at most 3 items

Calque ​

shapeenumrequis

The shape, from the closed list.

Valeursorbringpolystarcrystalblobspireshellleafflamedropgear

sizenumberrequis

The size, 8 to 120.

8 to 120

fillenum | stringrequis

The fill colour.

strokeenum | stringfacultatif

The outline colour.

sidesintegerfacultatif

The number of sides of a polygon, 3 to 12.

3 to 12

glownumberfacultatif

How much it glows, 0 to 1.

0 to 1

spinnumberfacultatif

How it turns, -1 to 1.

-1 to 1

wobblenumberfacultatif

How it wobbles, -1 to 1.

-1 to 1

Le guide d'un univers suit le standard de l'onboarding, et ses scènes celui des cinématiques.

Règles et erreurs ​

Chaque règle que alta lint applique à un univers, avec sa section sur la page des erreurs. Les plus fréquentes : un mot à lui qui est aussi un mot du jeu (universe.purity), et une adresse dans un texte (universe.no-address).

Exemple complet ​

La direction artistique d'un univers
my-world/art.json
json
{
  "schema": "alta.art/0.1",
  "ground": {
    "style": "bands",
    "colors": ["bg", "bg2", "#3a2f45"],
    "particles": {
      "shape": "flake",
      "count": 220,
      "drift": [2, -1],
      "twinkle": true
    }
  },
  "core": {
    "shape": "ring",
    "size": 72,
    "fill": "accent",
    "stroke": "ink",
    "glow": 0.6,
    "spin": 0.1,
    "layers": [
      {
        "shape": "star",
        "size": 40,
        "fill": "ink",
        "sides": 8
      }
    ]
  },
  "avatar": { "shape": "drop", "size": 18, "fill": "ink", "glow": 0.3 },
  "agents": {
    "architect": {
      "shape": "leaf",
      "size": 34,
      "fill": "#c9824a",
      "glow": 0.3
    },
    "operator": {
      "shape": "flame",
      "size": 34,
      "fill": "#e5c35c",
      "wobble": 0.2
    },
    "reviewer": {
      "shape": "crystal",
      "size": 34,
      "fill": "#b9c4d6"
    },
    "guardian": { "shape": "shell", "size": 34, "fill": "#8fbf7f" }
  },
  "kinds": {
    "module": {
      "shape": "poly",
      "size": 28,
      "fill": "accent",
      "sides": 6
    },
    "proposed": {
      "shape": "poly",
      "size": 24,
      "fill": "mock",
      "sides": 6,
      "glow": 0
    },
    "automation": {
      "shape": "gear",
      "size": 20,
      "fill": "ok",
      "spin": 0.5
    },
    "automation-orphan": {
      "shape": "gear",
      "size": 18,
      "fill": "warn",
      "spin": -0.2
    },
    "device": { "shape": "spire", "size": 26, "fill": "muted" },
    "account": { "shape": "ring", "size": 22, "fill": "#a37cc6" },
    "interface": {
      "shape": "orb",
      "size": 20,
      "fill": "#7fb3bf",
      "glow": 0.5
    },
    "market": {
      "shape": "star",
      "size": 36,
      "fill": "accent",
      "sides": 5
    },
    "peer": {
      "shape": "blob",
      "size": 26,
      "fill": "line",
      "wobble": 0.4
    }
  },
  "links": {
    "flow": { "style": "line", "width": 1.2, "color": "line" },
    "cycle": { "style": "dots", "width": 1, "color": "muted" },
    "control": { "style": "wave", "width": 2, "color": "accent" }
  },
  "light": { "vignette": 0.5, "fog": 0.2 }
}

examples/universe/art.json

Versions ​

VersionCe qu'elle ajouteLue par le jeu
alta.universe/0.1, alta.art/0.1Manifeste, vocabulaire, palette, textes, dessins, guide et scènesactuelle

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.