<!-- Canonical page: https://reversedwithai.com/p/chromatron-recompiled -->
Canonical page: https://reversedwithai.com/p/chromatron-recompiled

# Recompiled a 20-year-old puzzle game for Apple Silicon and the web

> A 20-year-old puzzle game, running natively on Apple Silicon and in the browser.

After attempts with Claude Opus 4.5 and GPT-5.2-Codex, Claude Opus 4.6 and PyGhidra rebuilt Chromatron in Rust so it runs natively on Apple Silicon, Windows, Linux and in a browser.

## Key facts

- Target: Chromatron
- Category: Games and mods
- Platform: PC
- Models: Claude Opus 4.6, Claude Opus 4.5, GPT-5.2-Codex
- Tools: Claude Code, Ghidra, PyGhidra, GhidrAssistMCP, m2c, Cursor
- Outcome: Works
- Checks: Source available: not reported; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: Piotr Migdał
- Added: 2026-10-13
- Updated: 2026-10-13
- Sources reviewed: 2026-10-13 (editor)

## What was done

Piotr Migdał of Quesma rebuilt Chromatron, Sean Barrett's 20-year-old laser and mirror puzzle game, from its Windows XP and PowerPC binaries. After attempts with Claude Opus 4.5 and GPT-5.2-Codex, Migdał started fresh with Claude Opus 4.6 and PyGhidra and produced a Rust version for Apple Silicon, Windows, Linux and the web that matches the original almost pixel for pixel.

### How it was done

Migdał tried four routes. Claude Code with Opus 4.5 and GhidrAssistMCP gave a C and Raylib version that looked like a remake, and the model often invented fonts and text. An m2c route with Opus 4.5 got positions right but struggled with assets, so Migdał dropped it. Cursor with GPT-5.2-Codex, which ended up using Ghidra's headless mode after an MCP misconfiguration, produced a playable C++ and SDL2 build. Migdał added pixelwise screenshot comparison because models kept claiming two images were the same. The final run used Opus 4.6 with PyGhidra and Rust. The model worked mainly from the Win32 binary and used the Mac PPC one for cross-reference. Rendering moved from SDL2 to winit and softbuffer, which made the Wasm build simple. Most of the time went on the font. Models suggested Geneva and MS Sans Serif, but a small comparison tool showed it was VGASYS, the Windows default system font.

### Results

307,199 of 307,200 pixels match the original. The one remaining pixel comes from the draw order of the laser beam and the grid overlay. The game binary is 40 kB compressed and 96 kB unpacked. A playable web version saves progress automatically.

## Sources

- [Write-up](https://quesma.com/blog/chromatron-recompiled/)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Piotr Migdał (2026). Recompiled a 20-year-old puzzle game for Apple Silicon and the web. Reversed with AI. https://reversedwithai.com/p/chromatron-recompiled
