← Back to the gamebug or idea?Terrapin Trail//Code BibleIIhow the game works, archive to van

A guided read of one small, complete game

Learn a whole codebase,
one file at a time.

Terrapin Trail is a comedic Oregon Trail-style RPG about following a band on tour. The game itself is about 3,900 lines of hand-written JavaScript in a single file; around it, a small Python server turns the Internet Archive's Live Music Archive into playable tours with shared, tagged leaderboards. Chapters 0–12 read the game; 11 and 13–18 cover the server, the archive, sharing, rules, fair play and hosting. Every code excerpt is read live from the code that is running.

Two ways in — same 19 chapters, pick your level

The setlist

Also inside