Games¶
src/retrospeedlab/games/ is RetroSpeedLab24: 24 original games, each about five minutes long, written by AI agents for the engine. Every game has a hand-built campaign that the AI speedruns and an endless mode that winning the campaign once unlocks.
The collection¶
collection.yaml is the source of truth for the list: number, slug, title, version, release date, genre, pitch and what each button does. The site, the itch.io pack, the backend, the runner and this table all read it.
| # | Title | Genre | Version |
|---|---|---|---|
| 1 | Pip Express | Momentum platformer | 2.0.5 |
| 2 | Blinkwisp | Top-down action puzzle | 3.0.3 |
| 3 | Parry Swift | Vertical shooter | 1.2.6 |
| 4 | Drumfort | Lane defense | 2.0.4 |
| 5 | Sumspire | Power-climb platformer | 2.0.4 |
| 6 | Counterfall | Gravity-flip platformer | 2.0.4 |
| 7 | Cinderhook | Grappling-hook swing platformer | 2.0.4 |
| 8 | Deepset | Descent shooter | 2.0.4 |
| 9 | Hushbeat | Rhythm-stealth heist | 2.0.3 |
| 10 | Lockkeeper Wren | Falling-block puzzle | 2.0.4 |
| 11 | Saltskid | Top-down drift racer | 1.1.3 |
| 12 | Keytooth | Roguelite dungeon run | 2.0.4 |
| 13 | Embercairn | Survivor-lite arena | 2.0.4 |
| 14 | Scarabogey | Top-down mini golf | 2.0.4 |
| 15 | Hailward | Lighthouse defense | 1.0.2 |
| 16 | Quilt Night | Territory sewing | 1.0.2 |
| 17 | Caromfist | Side-scrolling beat 'em up | 2.0.4 |
| 18 | Floeporter | Push-block puzzle | 2.0.3 |
| 19 | Goose Joust | Single-screen flap arena | 1.0.2 |
| 20 | Kickback | Top-down bomb maze | 1.0.5 |
| 21 | Milkhop | Lane-crossing hopper | 1.0.4 |
| 22 | Tiltknight | Pinball adventure | 1.0.4 |
| 23 | Windrung | Physics flyer | 1.0.4 |
| 24 | Duskstep | Auto-runner | 1.0.3 |
Layout¶
games/
collection.yaml the list, titles and versions
<slug>/ one self-contained cartridge with its CHANGELOG.md
shared/ code every game may import: pad, RAM words, seeded PRNG, title, endless hints
speedrun/<slug>.py the game's RAM map, states and Wrapper for the search
speedrun/runs/<slug>/ scripted routes, one "BUTTONS FRAMES" step per line
A game never imports another game, and nothing in a cartridge or in shared/ imports speedrun/ or the search.
Rules every game follows¶
- Five minutes. A skilled run takes about five minutes over about six stages: the verified
full.routelands between 4:30 and 5:30, with real content, never padding. - Deterministic. All state lives in RAM, randomness is seeded and kept in RAM, and power-on is the same every time, so recorded inputs replay frame for frame on the server.
- Same controls. A is the main action, B the secondary one, START starts the campaign, SELECT on the title starts endless once unlocked.
- Original. Names, characters, art, music and levels are invented, never recreations.
- Music players choose. Every song is Pyxel MML with three voices on channels 0 to 2, so M mutes it while the effects play on. A game's theme runs against one new take at a time (
TAKESin itsaudio.py,music_<slug>_r<n>inexperiments.py); the take players keep on wins and becomes the theme in the next patch version.
Versions and changelogs¶
Every change to a cartridge bumps its version in cartridge.py and collection.yaml, with an entry in the game's CHANGELOG.md:
| Bump | When |
|---|---|
| Patch | Gameplay unchanged; every old run replays |
| Minor | New features or modes |
| Major | Old runs no longer replay |
The highscore board belongs to the minor version, so every patch of it shares one board. An entry opens with one sentence of at most 90 characters that tells players what changed; the release post and the stream's banner show it whole, followed by "Your times still count." for a patch and "The board starts fresh." for a minor or major version. The search keeps its route on a patch or minor bump and starts the game fresh on a major one. A version change also ships a new itch.io release.
Add a game¶
- Take the next number in
collection.yaml; the collection never grows past 24. - Write
games/<slug>/cartridge.pyto the cartridge contract, withVERSION,SPRITESand aCHANGELOG.md. - Write
games/speedrun/<slug>.py: a RAM reader, one state per stage with agoalthat reads well on stream, one action table and aWrapper. - Script
games/speedrun/runs/<slug>/full.routeand let a test replay it from power-on. - Add the entry to
collection.yamlwithreleasedset to the release day. - Render stills and a full-run video with the preview tools, look at them, then run every check.
The project skill .claude/skills/lab24-game/SKILL.md holds the full bar a game must clear.