English
Universe
A universe dresses the same game in its own words, colours, art and texts: a quest stays the same quest, the world around it changes. A universe is data only: no code, no address, nothing that runs.
| Standard | alta.universe/0.1 (its art: alta.art/0.1) |
| File | a folder: universe.json, vocabulary.json, palette.json, art.json, copy/en.json, copy/fr.json, onboarding.json, cinematics.json |
| Create it | alta new universe my-world |
| Check it | alta lint my-world |
| JSON Schema | alta.universe.schema.json |
Each file of the folder is one field of the universe below: universe.json is its manifest, vocabulary.json its vocabulary, and so on. A store item carries the same universe as one object, in its universe field.
Minimal example
A universe needs every part to be played: a word for each thing of the map, every colour, a glyph for each kind. The folder starts with its manifest: who the universe is, and the words that are its own.
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
The whole folder, every file filled in, is in examples/universe; alta new universe writes one you can change.
Fields
Universe
schema"alta.universe/0.1"requiredThe standard:
alta.universe/0.1.manifestobjectrequiredWho the universe is.
manifest.idstringrequiredThe universe's id: lowercase letters, digits and dashes.
matches
^[a-z][a-z0-9-]{1,31}$manifest.ordernumberoptionalWhere it comes in the list of universes.
manifest.namestringrequiredIts name; it must not be taken.
manifest.taglinestringoptionalOne line that says what it is.
manifest.versionstringoptionalIts version.
manifest.languagesstring[]optionalThe languages of its texts.
manifest.fontsobjectrequiredIts fonts, from the closed list (grotesk, serif, mono, rounded).
manifest.fonts.displayenumrequiredThe font of the titles.
Values
groteskserifmonoroundedmanifest.fonts.bodyenumrequiredThe font of the texts.
Values
groteskserifmonoroundedmanifest.distinctivestring[]requiredAt least four words of its own, none of them a neutral word of the game.
at least 4 items
vocabularyobjectrequiredThe universe's words for the things of the game.
vocabulary.kindsobjectrequiredA word for each kind of thing of the map.
vocabulary.kinds.coreobjectrequiredThe universe's word for a thing of kind
core.vocabulary.kinds.core.labelstringrequiredThe word, as the player reads it.
vocabulary.kinds.core.glossstringoptionalA short explanation of the word.
vocabulary.kinds.agentobjectrequiredThe universe's word for a thing of kind
agent.vocabulary.kinds.agent.labelstringrequiredThe word, as the player reads it.
vocabulary.kinds.agent.glossstringoptionalA short explanation of the word.
vocabulary.kinds.moduleobjectrequiredThe universe's word for a thing of kind
module.vocabulary.kinds.module.labelstringrequiredThe word, as the player reads it.
vocabulary.kinds.module.glossstringoptionalA short explanation of the word.
vocabulary.kinds.proposedobjectrequiredThe universe's word for a thing of kind
proposed.vocabulary.kinds.proposed.labelstringrequiredThe word, as the player reads it.
vocabulary.kinds.proposed.glossstringoptionalA short explanation of the word.
vocabulary.kinds.automationobjectrequiredThe universe's word for a thing of kind
automation.vocabulary.kinds.automation.labelstringrequiredThe word, as the player reads it.
vocabulary.kinds.automation.glossstringoptionalA short explanation of the word.
vocabulary.kinds.automation-orphanobjectrequiredThe universe's word for a thing of kind
automation-orphan.vocabulary.kinds.automation-orphan.labelstringrequiredThe word, as the player reads it.
vocabulary.kinds.automation-orphan.glossstringoptionalA short explanation of the word.
vocabulary.kinds.deviceobjectrequiredThe universe's word for a thing of kind
device.vocabulary.kinds.device.labelstringrequiredThe word, as the player reads it.
vocabulary.kinds.device.glossstringoptionalA short explanation of the word.
vocabulary.kinds.accountobjectrequiredThe universe's word for a thing of kind
account.vocabulary.kinds.account.labelstringrequiredThe word, as the player reads it.
vocabulary.kinds.account.glossstringoptionalA short explanation of the word.
vocabulary.kinds.interfaceobjectrequiredThe universe's word for a thing of kind
interface.vocabulary.kinds.interface.labelstringrequiredThe word, as the player reads it.
vocabulary.kinds.interface.glossstringoptionalA short explanation of the word.
vocabulary.kinds.marketobjectrequiredThe universe's word for a thing of kind
market.vocabulary.kinds.market.labelstringrequiredThe word, as the player reads it.
vocabulary.kinds.market.glossstringoptionalA short explanation of the word.
vocabulary.kinds.peerobjectrequiredThe universe's word for a thing of kind
peer.vocabulary.kinds.peer.labelstringrequiredThe word, as the player reads it.
vocabulary.kinds.peer.glossstringoptionalA short explanation of the word.
vocabulary.rolesobjectrequiredA word and a creature for each agent.
vocabulary.roles.daemonobjectrequiredThe universe's word and creature for the daemon.
vocabulary.roles.daemon.labelstringrequiredThe word, as the player reads it.
vocabulary.roles.daemon.glossstringoptionalA short explanation of the word.
vocabulary.roles.daemon.creaturestringrequiredThe creature this agent is in the universe.
vocabulary.roles.architectobjectrequiredThe universe's word and creature for the architect.
vocabulary.roles.architect.labelstringrequiredThe word, as the player reads it.
vocabulary.roles.architect.glossstringoptionalA short explanation of the word.
vocabulary.roles.architect.creaturestringrequiredThe creature this agent is in the universe.
vocabulary.roles.operatorobjectrequiredThe universe's word and creature for the operator.
vocabulary.roles.operator.labelstringrequiredThe word, as the player reads it.
vocabulary.roles.operator.glossstringoptionalA short explanation of the word.
vocabulary.roles.operator.creaturestringrequiredThe creature this agent is in the universe.
vocabulary.roles.reviewerobjectrequiredThe universe's word and creature for the reviewer.
vocabulary.roles.reviewer.labelstringrequiredThe word, as the player reads it.
vocabulary.roles.reviewer.glossstringoptionalA short explanation of the word.
vocabulary.roles.reviewer.creaturestringrequiredThe creature this agent is in the universe.
vocabulary.roles.guardianobjectrequiredThe universe's word and creature for the guardian.
vocabulary.roles.guardian.labelstringrequiredThe word, as the player reads it.
vocabulary.roles.guardian.glossstringoptionalA short explanation of the word.
vocabulary.roles.guardian.creaturestringrequiredThe creature this agent is in the universe.
vocabulary.avatarobjectrequiredIts word for the player's avatar.
vocabulary.avatar.labelstringrequiredThe word, as the player reads it.
vocabulary.avatar.glossstringoptionalA short explanation of the word.
vocabulary.levelobjectrequiredIts word for a level.
vocabulary.level.labelstringrequiredThe word, as the player reads it.
vocabulary.level.glossstringoptionalA short explanation of the word.
vocabulary.xpobjectrequiredIts word for experience.
vocabulary.xp.labelstringrequiredThe word, as the player reads it.
vocabulary.xp.glossstringoptionalA short explanation of the word.
vocabulary.edgeobjectrequiredIts word for a link between two things.
vocabulary.edge.labelstringrequiredThe word, as the player reads it.
vocabulary.edge.glossstringoptionalA short explanation of the word.
vocabulary.worldobjectrequiredIts word for the world.
vocabulary.world.labelstringrequiredThe word, as the player reads it.
vocabulary.world.glossstringoptionalA short explanation of the word.
paletteobjectrequiredIts colours, each
#rrggbb.palette.bgstringrequiredThe background.
matches
^#[0-9a-fA-F]{6}$palette.bg2stringrequiredThe second background.
matches
^#[0-9a-fA-F]{6}$palette.inkstringrequiredThe text.
matches
^#[0-9a-fA-F]{6}$palette.mutedstringrequiredThe quiet text.
matches
^#[0-9a-fA-F]{6}$palette.accentstringrequiredThe accent.
matches
^#[0-9a-fA-F]{6}$palette.okstringrequiredWhat works.
matches
^#[0-9a-fA-F]{6}$palette.warnstringrequiredWhat needs a look.
matches
^#[0-9a-fA-F]{6}$palette.badstringrequiredWhat is broken.
matches
^#[0-9a-fA-F]{6}$palette.mockstringrequiredWhat is only shown (a demo).
matches
^#[0-9a-fA-F]{6}$palette.panelstringrequiredThe panels' background.
matches
^#[0-9a-fA-F]{6}$palette.panelInkstringrequiredThe panels' text.
matches
^#[0-9a-fA-F]{6}$palette.linestringrequiredThe lines.
matches
^#[0-9a-fA-F]{6}$copyobjectrequiredIts texts, by language; English is required.
copy.enobjectrequiredThe texts in English.
copy.frobjectoptionalThe texts in French.
skinobjectoptionalThe look of its panels.
skin.radiusnumberrequiredThe corner radius of the panels, 0 to 24.
0 to 24
skin.bordernumberrequiredThe border width, 0 to 3.
0 to 3
skin.panelAlphanumberrequiredHow opaque the panels are, 0 to 1.
0 to 1
skin.fontenumrequiredThe font of the panels.
Values
groteskserifmonoroundedskin.capsbooleanoptionaltrue: titles in capitals.onboardingonboardingrequiredIts guide: the same beats and quests as the neutral guide, in its words.
cinematicscinematicsoptionalIts trailer and scenes.
Art direction
art.json: the ground, a glyph for the core, the avatar, each agent and each kind of thing, the links and the light.
schema"alta.art/0.1"requiredThe standard:
alta.art/0.1.groundobjectrequiredThe ground of the map.
ground.styleenumrequiredThe ground's style, from the closed list.
Values
voidgradientbandsgridnoiseground.colorsenum | string[]requiredIts colours, 1 to 6.
1 to 6 items
ground.particlesobjectoptionalParticles drifting over the ground.
ground.particles.shapeenumrequiredTheir shape, from the closed list.
Values
dotstreakflakebubbleleafemberground.particles.countintegerrequiredHow many, 0 to 1500.
0 to 1500
ground.particles.driftnumber[]requiredTheir drift,
[x, y], each -50 to 50.2 to 2 items
ground.particles.twinklebooleanoptionaltrue: they twinkle.agentsobjectrequiredHow each agent is drawn, by role.
agents.architectglyphrequiredHow the architect is drawn.
agents.operatorglyphrequiredHow the operator is drawn.
agents.reviewerglyphrequiredHow the reviewer is drawn.
agents.guardianglyphrequiredHow the guardian is drawn.
kindsobjectrequiredHow each kind of thing of the map is drawn.
kinds.moduleglyphrequiredHow a thing of kind
moduleis drawn.kinds.proposedglyphrequiredHow a thing of kind
proposedis drawn.kinds.automationglyphrequiredHow a thing of kind
automationis drawn.kinds.automation-orphanglyphrequiredHow a thing of kind
automation-orphanis drawn.kinds.deviceglyphrequiredHow a thing of kind
deviceis drawn.kinds.accountglyphrequiredHow a thing of kind
accountis drawn.kinds.interfaceglyphrequiredHow a thing of kind
interfaceis drawn.kinds.marketglyphrequiredHow a thing of kind
marketis drawn.kinds.peerglyphrequiredHow a thing of kind
peeris drawn.linksobjectrequiredHow the links are drawn.
links.flowlinkrequiredA link that carries data.
links.cyclelinkrequiredA link that comes back on a schedule.
links.controllinkrequiredA link that gives orders.
lightobjectoptionalThe light over the map.
light.vignettenumberoptionalHow dark the edges are, 0 to 1.
0 to 1
light.fognumberoptionalHow much fog, 0 to 1.
0 to 1
Glyph
shapeenumrequiredThe shape, from the closed list.
Values
orbringpolystarcrystalblobspireshellleafflamedropgearsizenumberrequiredThe size, 8 to 120.
8 to 120
fillenum | stringrequiredThe fill colour.
strokeenum | stringoptionalThe outline colour.
sidesintegeroptionalThe number of sides of a polygon, 3 to 12.
3 to 12
glownumberoptionalHow much it glows, 0 to 1.
0 to 1
spinnumberoptionalHow it turns, -1 to 1.
-1 to 1
wobblenumberoptionalHow it wobbles, -1 to 1.
-1 to 1
Layer
shapeenumrequiredThe shape, from the closed list.
Values
orbringpolystarcrystalblobspireshellleafflamedropgearsizenumberrequiredThe size, 8 to 120.
8 to 120
fillenum | stringrequiredThe fill colour.
strokeenum | stringoptionalThe outline colour.
sidesintegeroptionalThe number of sides of a polygon, 3 to 12.
3 to 12
glownumberoptionalHow much it glows, 0 to 1.
0 to 1
spinnumberoptionalHow it turns, -1 to 1.
-1 to 1
wobblenumberoptionalHow it wobbles, -1 to 1.
-1 to 1
Link
The guide of a universe follows the onboarding standard, and its scenes the cinematics standard.
Rules and errors
Each rule alta lint applies to a universe, with its section on the errors page. The most frequent: a word of its own that is also a word of the game (universe.purity), and an address in a text (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.
Full example
The art direction of a universe
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 | What it adds | Read by the game |
|---|---|---|
alta.universe/0.1, alta.art/0.1 | Manifest, vocabulary, palette, texts, art, guide and scenes | current |