Show HN: Crystal Caves (1991) – C and WebAssembly port without an emulator githu...
Show HN @show
Show HN: Crystal Caves (1991) – C and WebAssembly port without an emulator github.com · 2 points · 1 comments · HN thread
TL;DR A Show HN project that ports the 1991 shareware DOS game Crystal Caves (Episode 1, by Apogee) to freestanding C and WebAssembly, built by disassembling the original EXE rather than running it in an emulator. The author reports frame-for-frame verification against the original binary under a Unicorn-based oracle, and the game is playable in the browser.
- The original EXE was disassembled and its game logic re-implemented in C; no DOSBox or emulator runs the game at play time.
- Static level rendering is claimed pixel-exact on all 19 levels, and physics, combat, cell events, all 46 handler behaviours and level transitions are checked frame-for-frame against the original binary.
- HUD, text windows, shell flow, high scores, save format, key handling and all 36 sound effects follow the original routines.
- Saves, high scores, key bindings and config are stored in localStorage, so the server is stateless.
- The wasm module is about 155 KB; the repo includes a Dockerfile serving it via nginx, with touch controls for phones and tablets.
- The original game binary and shareware data are not downloadable; the project is MIT-licensed for its own code, while the game assets remain Apogee's property.
Discussion The thread is a single top-level comment from the project's author, with no replies. The author explains the motivation: a nostalgic project to test LLM-assisted decompilation of an old game, chosen for its small size. They say they mostly used DeepSeek V4.1 Flash with GLM 5.3 as a fallback, that the port cost about $20, and that WASM was picked for easy browser play. They acknowledge DOSBox exists and frame the work as experimentation.
Links from the comments