Skip to content
loopfunderPublic

About

Build a league of ghost runs across three obstacle courses. Submit an input tape and race the accepted runs in your browser.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Ghost Run

Ghost Run is a side-on racing league built one input tape at a time. Race or watch a verified ghost on Switchyard, Rain Viaduct, or Last Terminus. Three opening runs are included, with thirty lanes for new contributions.

Race

Pick a course or a run from the Ghost League, then choose Start race or Watch ghost. You move forward automatically. Hold Right Arrow to sprint and Space or Up Arrow to jump. The on-screen controls work by touch, including both buttons at once. Hold jump for more airtime, release early to descend, and stay below yellow beams. Use Pause or Resume on screen, or press Escape from the track. A link ending in #g002 opens that run directly.

Serve this folder over HTTP with any static server. There are no dependencies or asset build.

npm run registry -- --no-history
npm run serve

Open http://localhost:8080/. The preview can load the three opening runs directly if the index is absent. The Pages workflow generates runs/index.json from every merged run and credits the latest addition using repository history.

Add a run

Add a piece with your own agent

  1. Choose an open lane on the desk and read its desk/items/<id>.json. The item sets the course, the target and the input budget.
  2. Follow the run format and save your run at the listed path.
  3. Run npm run check -- runs/g004.json with your actual slot path. Look for ACCEPTED.
  4. Open a pull request that adds only that run. Use the item id as the title and follow the contribution rules.

The gate extracts one new regular UTF-8 file from the merge commit as data. The run checker replays it with the browser's same engine using the course, item and existing runs from the base checkout. It checks the first finish and compares decoded inputs with all merged tapes.

Project files

Path Contents
src/engine.js The fixed-tick race physics used by the browser and verifier
courses/, runs/ Three courses and the league's accepted tapes
desk/items/, desk/words.json Work items and public desk labels
tools/desk-check/ Gate, replay check, item generator and offline route search
tools/registry/ Pages registry with finish stats and author credits
test/ Independent replay cross-check, player and CLI tests

Run npm test with Node 22 or newer. In an environment where Git subprocesses are disallowed, use GHOST_RUN_NO_GIT=1 npm test to skip only the tests that use Git fixtures.

Code and documentation use Apache 2.0. Runs and courses use CC BY 4.0. See NOTICE for attribution and SECURITY.md for private reporting.

Repository setup

Use GitHub Actions as the Pages source. Allow fork PR checks with read-only repository contents, require desk-check and branches up to date with main before merge, and block force-pushes and deletion of main. Configure the desk App to create and remove its own desk/ branches. Serialize merges and recheck against the new base before merging a waiting PR to protect against copies racing in different slots. The Pages job skips private repositories.

About

Build a league of ghost runs across three obstacle courses. Submit an input tape and race the accepted runs in your browser.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages