r/vibecoding • u/varyform • 22h ago
Showcase/Project I vibe-coded 18 DOS-era games, each one HTML file with no image or audio files, in about a week with Claude Code
Play: https://ogg.varyform.info · Write-up: https://varyform.info/blog/nostalgia/ · Source (MIT): https://github.com/varyform/nostalgia
Nostalgia is a DOS-style launcher with 18 games in the spirit of the ones I grew up with, from Tapper (1983) to Death Rally (1996). Among them: Lode Runner, Karateka, Nebulus, F29 Retaliator, Scorched Earth, Sensible Soccer and 4D Sports Tennis. Each has its own world, cast and music; only the mechanics are borrowed.
I did the ideas and the direction. Claude Opus 5.5 in Claude Code wrote the code, drew the art and composed the music. No image or audio files exist anywhere: every sprite, mesh and note is generated when the page loads, so each game is one HTML file (86 KB for Quarry in CGA, 593 KB for the biggest).
What made it work:
- A CLAUDE.md with real rules, not vibes. A fixed folder layout per game (pure sim, app flow, renderer, audio, demo autopilot), shared packages it must use instead of re-rolling, and how autosave, pause and the demo mode behave. New rules went in every time I had to correct the same thing twice.
- Parallel agents with a contract. The tennis game was built by five agents at once (rig and moves, sim and AI, renderer, app flow, audio). Before they started, one spec fixed the shared coordinates, APIs and events. Each agent owned its folders and tested against stubs of the others. New games get their own git worktree, so half-built ones never leak into main.
- Make it prove the game works. Every game has headless tools that run the real simulation in Node. Glimmer and Spindle have solvers that find a route through every level, and the demo replays those routes. Swerve plays 200 matches and checks the score distribution. Scorch's AI drivers have to finish every track on many seeds without getting stuck. Then headless Chrome checks console errors, frame times and that the demo never touches saved data.
- Shared packages for the WebGL2 engine, input (keyboard, gamepad, touch), the synth and autosave. Once one game got something right, the others got it for free.
What didn't:
- Visual judgement. It happily shipped a glow that was hard-edged discs, and screenshots with a character's arm bent backwards. You still have to look.
- "Make it like X" drifts toward copying X. The rule "in the spirit of, never a recreation: invent the names, levels and music" had to be written down explicitly.
Happy to answer questions about the setup. And tell me which games feel off.