Français
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.
| Standard | alta.universe/0.1 (ses dessins : alta.art/0.1) |
| Fichier | un dossier : universe.json, vocabulary.json, palette.json, art.json, copy/en.json, copy/fr.json, onboarding.json, cinematics.json |
| Le créer | alta new universe my-world |
| Le vérifier | alta lint my-world |
| Schéma JSON | alta.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"requisThe standard:
alta.universe/0.1.manifestobjectrequisWho the universe is.
manifest.idstringrequisThe universe's id: lowercase letters, digits and dashes.
matches
^[a-z][a-z0-9-]{1,31}$manifest.ordernumberfacultatifWhere it comes in the list of universes.
manifest.namestringrequisIts name; it must not be taken.
manifest.taglinestringfacultatifOne line that says what it is.
manifest.versionstringfacultatifIts version.
manifest.languagesstring[]facultatifThe languages of its texts.
manifest.fontsobjectrequisIts fonts, from the closed list (grotesk, serif, mono, rounded).
manifest.fonts.displayenumrequisThe font of the titles.
Valeurs
groteskserifmonoroundedmanifest.fonts.bodyenumrequisThe font of the texts.
Valeurs
groteskserifmonoroundedmanifest.distinctivestring[]requisAt least four words of its own, none of them a neutral word of the game.
at least 4 items
vocabularyobjectrequisThe universe's words for the things of the game.
vocabulary.kindsobjectrequisA word for each kind of thing of the map.
vocabulary.kinds.coreobjectrequisThe universe's word for a thing of kind
core.vocabulary.kinds.core.labelstringrequisThe word, as the player reads it.
vocabulary.kinds.core.glossstringfacultatifA short explanation of the word.
vocabulary.kinds.agentobjectrequisThe universe's word for a thing of kind
agent.vocabulary.kinds.agent.labelstringrequisThe word, as the player reads it.
vocabulary.kinds.agent.glossstringfacultatifA short explanation of the word.
vocabulary.kinds.moduleobjectrequisThe universe's word for a thing of kind
module.vocabulary.kinds.module.labelstringrequisThe word, as the player reads it.
vocabulary.kinds.module.glossstringfacultatifA short explanation of the word.
vocabulary.kinds.proposedobjectrequisThe universe's word for a thing of kind
proposed.vocabulary.kinds.proposed.labelstringrequisThe word, as the player reads it.
vocabulary.kinds.proposed.glossstringfacultatifA short explanation of the word.
vocabulary.kinds.automationobjectrequisThe universe's word for a thing of kind
automation.vocabulary.kinds.automation.labelstringrequisThe word, as the player reads it.
vocabulary.kinds.automation.glossstringfacultatifA short explanation of the word.
vocabulary.kinds.automation-orphanobjectrequisThe universe's word for a thing of kind
automation-orphan.vocabulary.kinds.automation-orphan.labelstringrequisThe word, as the player reads it.
vocabulary.kinds.automation-orphan.glossstringfacultatifA short explanation of the word.
vocabulary.kinds.deviceobjectrequisThe universe's word for a thing of kind
device.vocabulary.kinds.device.labelstringrequisThe word, as the player reads it.
vocabulary.kinds.device.glossstringfacultatifA short explanation of the word.
vocabulary.kinds.accountobjectrequisThe universe's word for a thing of kind
account.vocabulary.kinds.account.labelstringrequisThe word, as the player reads it.
vocabulary.kinds.account.glossstringfacultatifA short explanation of the word.
vocabulary.kinds.interfaceobjectrequisThe universe's word for a thing of kind
interface.vocabulary.kinds.interface.labelstringrequisThe word, as the player reads it.
vocabulary.kinds.interface.glossstringfacultatifA short explanation of the word.
vocabulary.kinds.marketobjectrequisThe universe's word for a thing of kind
market.vocabulary.kinds.market.labelstringrequisThe word, as the player reads it.
vocabulary.kinds.market.glossstringfacultatifA short explanation of the word.
vocabulary.kinds.peerobjectrequisThe universe's word for a thing of kind
peer.vocabulary.kinds.peer.labelstringrequisThe word, as the player reads it.
vocabulary.kinds.peer.glossstringfacultatifA short explanation of the word.
vocabulary.rolesobjectrequisA word and a creature for each agent.
vocabulary.roles.daemonobjectrequisThe universe's word and creature for the daemon.
vocabulary.roles.daemon.labelstringrequisThe word, as the player reads it.
vocabulary.roles.daemon.glossstringfacultatifA short explanation of the word.
vocabulary.roles.daemon.creaturestringrequisThe creature this agent is in the universe.
vocabulary.roles.architectobjectrequisThe universe's word and creature for the architect.
vocabulary.roles.architect.labelstringrequisThe word, as the player reads it.
vocabulary.roles.architect.glossstringfacultatifA short explanation of the word.
vocabulary.roles.architect.creaturestringrequisThe creature this agent is in the universe.
vocabulary.roles.operatorobjectrequisThe universe's word and creature for the operator.
vocabulary.roles.operator.labelstringrequisThe word, as the player reads it.
vocabulary.roles.operator.glossstringfacultatifA short explanation of the word.
vocabulary.roles.operator.creaturestringrequisThe creature this agent is in the universe.
vocabulary.roles.reviewerobjectrequisThe universe's word and creature for the reviewer.
vocabulary.roles.reviewer.labelstringrequisThe word, as the player reads it.
vocabulary.roles.reviewer.glossstringfacultatifA short explanation of the word.
vocabulary.roles.reviewer.creaturestringrequisThe creature this agent is in the universe.
vocabulary.roles.guardianobjectrequisThe universe's word and creature for the guardian.
vocabulary.roles.guardian.labelstringrequisThe word, as the player reads it.
vocabulary.roles.guardian.glossstringfacultatifA short explanation of the word.
vocabulary.roles.guardian.creaturestringrequisThe creature this agent is in the universe.
vocabulary.avatarobjectrequisIts word for the player's avatar.
vocabulary.avatar.labelstringrequisThe word, as the player reads it.
vocabulary.avatar.glossstringfacultatifA short explanation of the word.
vocabulary.levelobjectrequisIts word for a level.
vocabulary.level.labelstringrequisThe word, as the player reads it.
vocabulary.level.glossstringfacultatifA short explanation of the word.
vocabulary.xpobjectrequisIts word for experience.
vocabulary.xp.labelstringrequisThe word, as the player reads it.
vocabulary.xp.glossstringfacultatifA short explanation of the word.
vocabulary.edgeobjectrequisIts word for a link between two things.
vocabulary.edge.labelstringrequisThe word, as the player reads it.
vocabulary.edge.glossstringfacultatifA short explanation of the word.
vocabulary.worldobjectrequisIts word for the world.
vocabulary.world.labelstringrequisThe word, as the player reads it.
vocabulary.world.glossstringfacultatifA short explanation of the word.
paletteobjectrequisIts colours, each
#rrggbb.palette.bgstringrequisThe background.
matches
^#[0-9a-fA-F]{6}$palette.bg2stringrequisThe second background.
matches
^#[0-9a-fA-F]{6}$palette.inkstringrequisThe text.
matches
^#[0-9a-fA-F]{6}$palette.mutedstringrequisThe quiet text.
matches
^#[0-9a-fA-F]{6}$palette.accentstringrequisThe accent.
matches
^#[0-9a-fA-F]{6}$palette.okstringrequisWhat works.
matches
^#[0-9a-fA-F]{6}$palette.warnstringrequisWhat needs a look.
matches
^#[0-9a-fA-F]{6}$palette.badstringrequisWhat is broken.
matches
^#[0-9a-fA-F]{6}$palette.mockstringrequisWhat is only shown (a demo).
matches
^#[0-9a-fA-F]{6}$palette.panelstringrequisThe panels' background.
matches
^#[0-9a-fA-F]{6}$palette.panelInkstringrequisThe panels' text.
matches
^#[0-9a-fA-F]{6}$palette.linestringrequisThe lines.
matches
^#[0-9a-fA-F]{6}$copyobjectrequisIts texts, by language; English is required.
copy.enobjectrequisThe texts in English.
copy.frobjectfacultatifThe texts in French.
skinobjectfacultatifThe look of its panels.
skin.radiusnumberrequisThe corner radius of the panels, 0 to 24.
0 to 24
skin.bordernumberrequisThe border width, 0 to 3.
0 to 3
skin.panelAlphanumberrequisHow opaque the panels are, 0 to 1.
0 to 1
skin.fontenumrequisThe font of the panels.
Valeurs
groteskserifmonoroundedskin.capsbooleanfacultatiftrue: titles in capitals.onboardingonboardingrequisIts guide: the same beats and quests as the neutral guide, in its words.
cinematicscinematicsfacultatifIts 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"requisThe standard:
alta.art/0.1.groundobjectrequisThe ground of the map.
ground.styleenumrequisThe ground's style, from the closed list.
Valeurs
voidgradientbandsgridnoiseground.colorsenum | string[]requisIts colours, 1 to 6.
1 to 6 items
ground.particlesobjectfacultatifParticles drifting over the ground.
ground.particles.shapeenumrequisTheir shape, from the closed list.
Valeurs
dotstreakflakebubbleleafemberground.particles.countintegerrequisHow many, 0 to 1500.
0 to 1500
ground.particles.driftnumber[]requisTheir drift,
[x, y], each -50 to 50.2 to 2 items
ground.particles.twinklebooleanfacultatiftrue: they twinkle.agentsobjectrequisHow each agent is drawn, by role.
agents.architectglyphrequisHow the architect is drawn.
agents.operatorglyphrequisHow the operator is drawn.
agents.reviewerglyphrequisHow the reviewer is drawn.
agents.guardianglyphrequisHow the guardian is drawn.
kindsobjectrequisHow each kind of thing of the map is drawn.
kinds.moduleglyphrequisHow a thing of kind
moduleis drawn.kinds.proposedglyphrequisHow a thing of kind
proposedis drawn.kinds.automationglyphrequisHow a thing of kind
automationis drawn.kinds.automation-orphanglyphrequisHow a thing of kind
automation-orphanis drawn.kinds.deviceglyphrequisHow a thing of kind
deviceis drawn.kinds.accountglyphrequisHow a thing of kind
accountis drawn.kinds.interfaceglyphrequisHow a thing of kind
interfaceis drawn.kinds.marketglyphrequisHow a thing of kind
marketis drawn.kinds.peerglyphrequisHow a thing of kind
peeris drawn.linksobjectrequisHow the links are drawn.
links.flowlinkrequisA link that carries data.
links.cyclelinkrequisA link that comes back on a schedule.
links.controllinkrequisA link that gives orders.
lightobjectfacultatifThe light over the map.
light.vignettenumberfacultatifHow dark the edges are, 0 to 1.
0 to 1
light.fognumberfacultatifHow much fog, 0 to 1.
0 to 1
Glyphe
shapeenumrequisThe shape, from the closed list.
Valeurs
orbringpolystarcrystalblobspireshellleafflamedropgearsizenumberrequisThe size, 8 to 120.
8 to 120
fillenum | stringrequisThe fill colour.
strokeenum | stringfacultatifThe outline colour.
sidesintegerfacultatifThe number of sides of a polygon, 3 to 12.
3 to 12
glownumberfacultatifHow much it glows, 0 to 1.
0 to 1
spinnumberfacultatifHow it turns, -1 to 1.
-1 to 1
wobblenumberfacultatifHow it wobbles, -1 to 1.
-1 to 1
Calque
shapeenumrequisThe shape, from the closed list.
Valeurs
orbringpolystarcrystalblobspireshellleafflamedropgearsizenumberrequisThe size, 8 to 120.
8 to 120
fillenum | stringrequisThe fill colour.
strokeenum | stringfacultatifThe outline colour.
sidesintegerfacultatifThe number of sides of a polygon, 3 to 12.
3 to 12
glownumberfacultatifHow much it glows, 0 to 1.
0 to 1
spinnumberfacultatifHow it turns, -1 to 1.
-1 to 1
wobblenumberfacultatifHow it wobbles, -1 to 1.
-1 to 1
Lien
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).
universe.schemaA universe pack must sayalta.universe/0.1.universe.sizeThe pack is too large.universe.no-addressA universe holds data only: no address, markup orurl().universe.manifestThe pack has no manifest.universe.purityA distinctive word of the universe is a neutral word of the game.universe.distinctiveA universe needs at least four distinctive words.universe.fontsA font is not one of the four families.universe.name-takenAnother universe already uses this id or name.universe.denylistThe name is refused.universe.skinThe skin is malformed.universe.copyA translation of the texts is missing.universe.rendererA hand-written universe folder needs its renderer.universe.vocabularyThe vocabulary misses a word or has a malformed one.universe.paletteA colour of the palette is missing or malformed.art.schemaThe art file must sayalta.art/0.1.art.groundThe ground is malformed.art.coreThe glyph of the core is malformed.art.avatarThe glyph of the avatar is malformed.art.agentsA glyph of an agent is missing or malformed.art.kindsA glyph of an entity kind is missing or malformed.art.linksA link style is missing or malformed.art.lightThe light is out of bounds.art.shapeA glyph's shape is unknown.art.sizeA glyph's size is out of bounds.art.fillA fill colour is malformed.art.strokeA stroke colour is malformed.art.sidesA polygon's number of sides is out of bounds.art.glowA glow is out of bounds.art.spinA spin is out of bounds.art.wobbleA wobble is out of bounds.art.layersA glyph has too many layers or a malformed one.art.styleA style is unknown.art.colorsA list of colours is malformed.art.particlesThe particles are malformed.
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 }
}Versions
| Version | Ce qu'elle ajoute | Lue par le jeu |
|---|---|---|
alta.universe/0.1, alta.art/0.1 | Manifeste, vocabulaire, palette, textes, dessins, guide et scènes | actuelle |