A guided read of one small, complete game
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
function and state are old friends.Open the Field Manual →First Tournew to codeTeaches every idea from scratch — variable, function, loop, server, test — using the game as the example. No experience assumed.Start the First Tour →The setlist
Also inside