Skip to content

Arcade

src/retrospeedlab/arcade/ builds everything players get from the same cartridges the AI runs. The games are browser-only: games.retrospeedlab.com and the itch.io HTML5 pack.

Play locally

uv run python -m retrospeedlab.arcade.play comet_courier

Opens one game in a desktop window with the keyboard map from Getting started.

The games site

uv run python -m retrospeedlab.arcade.site build renders/site
uv run python -m retrospeedlab.arcade.site cover comet_courier renders/cover.png

build writes every game as a browser build with its page: controls, the pitch, the highscore board, the ghost of the fastest verified run and other players' deaths. When a human wins, the page offers to save the time with Discord, and the backend replays the inputs before the run counts. When a campaign run ends, or the mouse leaves through the top of the window, the page asks once per visit for a rating beside the game (rating.js). cover renders a game's cover image.

A game whose music is under test plays the take its A/B test serves this browser tab (music.js); without an answer, and on itch.io, the current take plays. A campaign play started with the music on votes for its take: it counts as kept when the music is still on after two minutes, and pressing M before then votes it down.

The itch.io pack

uv run python -m retrospeedlab.arcade.itch build renders/itch
uv run python -m retrospeedlab.arcade.itch notes

build makes the whole collection one HTML5 build with a menu. notes prints one Title version line per game; a release ships whenever those notes change, so every game-version change reaches itch.io.

The site and the pack ship the licences of the bundled third-party software from arcade/licenses/.

Preview and route tools

The tools a game author uses to look at a game before it ships:

uv run python -m retrospeedlab.arcade.preview sheet comet_courier renders/sprites.png
uv run python -m retrospeedlab.arcade.preview stills comet_courier false src/retrospeedlab/games/speedrun/runs/comet_courier/full.route renders/stills 600
uv run python -m retrospeedlab.arcade.preview video comet_courier false src/retrospeedlab/games/speedrun/runs/comet_courier/full.route renders/full.mp4 0 18000
uv run python -m retrospeedlab.arcade.preview filmstrip comet_courier src/retrospeedlab/games/speedrun/runs/comet_courier/start.route renders/strip.png
Command Output
sheet The sprite sheet with every named sprite
stills A still every N frames of a route
video A route as an MP4 with sound, from frame skip for at most limit frames
filmstrip A strip of frames along a route

The route finder scripts a route with a beam search over the game's speedrun wrapper, stage by stage, from a prefix route:

uv run python -m retrospeedlab.arcade.route_finder comet_courier start.route found.route 6 64 400 1

Its arguments are the slug, the prefix route, the output route, the number of stages, the beam width, the search steps per stage and the score weight of height.