cafe.thunderbird.cosmicjunkyard.run
One finished run of Cosmic Junkyard (a web tile game), saved by its player to their own account. Written by the host page the game ran in, which fills in the game's address and version from the tile it actually ran. With moves, anyone can replay the run on its day's course to check its score.
Details · record, key tid
| Kind | record |
|---|---|
| Record key | tid |
| Authority | cosmicjunkyard.thunderbird.cafe |
| Commit rev | 3n2ogahedly2m |
| Indexed |
Checks
Validunlimited-stringdefs.change.properties.goNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"change": {
"properties": {
"at": {
"description": "The step (counted from 1) from which the character goes this way.",
"minimum": 1,
"type": "integer"
},
"go": {
"enum": [
"left",
"right",
"stop"
],
"type": "string"
}
},
"required": [
"at",
"go"
],
"type": "object"
},
"frame": {
"description": "The size of one frame of the character's sprite sheet, in pixels: it sets the character's hitbox and height.",
"properties": {
"height": {
"maximum": 4096,
"minimum": 1,
"type": "integer"
},
"width": {
"maximum": 4096,
"minimum": 1,
"type": "integer"
}
},
"required": [
"width",
"height"
],
"type": "object"
},
"main": {
"description": "One finished run of Cosmic Junkyard (a web tile game), saved by its player to their own account. Written by the host page the game ran in, which fills in the game's address and version from the tile it actually ran. With moves, anyone can replay the run on its day's course to check its score.",
"key": "tid",
"record": {
"properties": {
"createdAt": {
"description": "When the run was saved.",
"format": "datetime",
"type": "string"
},
"day": {
"description": "The day's course that was played, YYYY-MM-DD (the America/Denver calendar day; every player gets the same course that day).",
"maxLength": 10,
"minLength": 10,
"type": "string"
},
"game": {
"description": "The game tile that played the run: its ing.dasl.masl record's address and exact version.",
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"moves": {
"ref": "#moves",
"type": "ref"
},
"playedAt": {
"description": "When the run ended, by the player's clock.",
"format": "datetime",
"type": "string"
},
"score": {
"description": "The final score: dice dodged add their value, dice hit take it away, saucers add 10, aliens 15.",
"type": "integer"
},
"tally": {
"ref": "#tally",
"type": "ref"
}
},
"required": [
"game",
"score",
"day",
"playedAt",
"createdAt"
],
"type": "object"
},
"type": "record"
},
"moves": {
"description": "Present only when the player chose to include their moves. Enough to replay the run exactly: the game steps 60 times a second, and the character moves left, right or not at all in each step.",
"properties": {
"changes": {
"description": "Each change of direction, in step order. Before the first, the character stands still.",
"items": {
"ref": "#change",
"type": "ref"
},
"maxLength": 4000,
"type": "array"
},
"frame": {
"ref": "#frame",
"type": "ref"
},
"steps": {
"description": "How many steps the run took, from Start to the last drop.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"frame",
"steps",
"changes"
],
"type": "object"
},
"tally": {
"description": "What the run's end screen shows.",
"properties": {
"aliens": {
"minimum": 0,
"type": "integer"
},
"dodged": {
"minimum": 0,
"type": "integer"
},
"hit": {
"minimum": 0,
"type": "integer"
},
"saucers": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"dodged",
"hit",
"saucers",
"aliens"
],
"type": "object"
}
},
"id": "cafe.thunderbird.cosmicjunkyard.run",
"lexicon": 1
}