Tide pool
Galaga, written in assembly — on purpose
A complete, playable Galaga clone whose gameplay core — collisions, entities, the player, the enemies, scoring, game state — is hand-written x86-64 assembly. Not as nostalgia. As a test: we wanted to know whether AI can do real work in the least forgiving language there is. The game below is the answer, running live in your browser.
i.
Why we did this
AI tools are trained on oceans of Python and JavaScript. Assembly is where the training wheels come off: no types, no garbage collector, no abstractions to hide behind — just registers, the stack, and calling conventions you break at your peril. If an AI can build and maintain a real program down there, it can probably be trusted further up the stack. So we pointed it at a full game and kept the receipts in the open.
ii.
How it is built
C and SDL2 do the polite work — window, input, rendering, the main loop. Everything that makes it Galaga lives in NASM assembly modules, one per system. A C mirror of the same logic stands in on platforms assembly can't reach, and the two are kept in lockstep — which is exactly the discipline the experiment was measuring. Every commit builds fresh binaries for Linux, macOS and Windows.
iii.
What WebAssembly opens up
The same codebase also compiles to WebAssembly, which is how it is playing on this page — no download, no install, any browser. Scale that idea up and it gets serious: decades of native software — games, tools, simulations, the long tail of computing history — can be preserved and run anywhere, instead of dying with the machines it was written for. WebAssembly is a museum you can actually play in.
Galaga-assembly — WebAssembly build, live
Open the game in its own tabOpen ↗ (opens in a new tab)Click the game to give it focus, then press Space to start. The code — assembly, mirrors, build recipes and all — is public: Galaga-assembly on GitHub, with prebuilt downloads for Linux, macOS and Windows in its releases. Back to the tide pools.