{
  "api_version": "1.0.0",
  "slug": "chromatron-recompiled",
  "url": "https://reversedwithai.com/p/chromatron-recompiled",
  "markdown_url": "https://reversedwithai.com/p/chromatron-recompiled.md",
  "json_url": "https://reversedwithai.com/p/chromatron-recompiled.json",
  "title": "Recompiled a 20-year-old puzzle game for Apple Silicon and the web",
  "tagline": "A 20-year-old puzzle game, running natively on Apple Silicon and in the browser.",
  "summary": "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.",
  "target": {
    "name": "Chromatron",
    "type": "game",
    "type_label": "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",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": null,
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "Piotr Migdał",
    "url": null
  },
  "sources": {
    "repository": null,
    "writeup": "https://quesma.com/blog/chromatron-recompiled/",
    "discussions": [],
    "all": [
      "https://quesma.com/blog/chromatron-recompiled/"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/chromatron-recompiled.webp",
    "credit": "quesma.com"
  },
  "commit_history": null,
  "added_at": "2026-10-13T00:00:00+00:00",
  "updated_at": "2026-10-13T00:00:00+00:00",
  "sources_reviewed_at": "2026-10-13T00:00:00+00:00",
  "reviewed_by": "editor",
  "human_notes": null,
  "reproduce": null,
  "body_md": "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.\n\n### How it was done\n\nMigdał 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.\n\n### Results\n\n307,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.",
  "ai_use_excerpts": null
}
