{
  "api_version": "1.0.0",
  "slug": "skyroads-fable-c-port",
  "url": "https://reversedwithai.com/p/skyroads-fable-c-port",
  "markdown_url": "https://reversedwithai.com/p/skyroads-fable-c-port.md",
  "json_url": "https://reversedwithai.com/p/skyroads-fable-c-port.json",
  "title": "Rewrote the SkyRoads engine in portable C from raw machine code with Claude Fable 5",
  "tagline": "SkyRoads in 3,000 lines of C, replaying the 1993 demo tick for tick.",
  "summary": "Claude Fable 5 disassembled SKYROADS.EXE, recovered every file format and rewrote the engine in about 3,000 lines of C11 for macOS, Windows, Linux, web and iOS; the 1993 attract demo replays tick for tick.",
  "target": {
    "name": "SkyRoads (1993)",
    "type": "game",
    "type_label": "Games and mods"
  },
  "platform": "DOS",
  "models": [
    "Claude Fable 5"
  ],
  "tools": [],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": "Roughly a day, per the README",
  "cost": null,
  "license": null,
  "checks": {
    "source_available": "yes",
    "repro_steps": "yes",
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "Ammaar Reshi",
    "url": "https://x.com/ammaar"
  },
  "sources": {
    "repository": "https://github.com/ammaarreshi/skyroads-port",
    "writeup": "https://x.com/ammaar/status/2065491608598872156",
    "discussions": [],
    "all": [
      "https://github.com/ammaarreshi/skyroads-port",
      "https://x.com/ammaar/status/2065491608598872156"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/skyroads-fable-c-port.webp",
    "credit": "@ammaar on X"
  },
  "commit_history": {
    "commits": 2,
    "ai_commits": 1,
    "ai_days": 1,
    "first_ai_commit": "2026-06-11",
    "last_ai_commit": "2026-06-11",
    "credited_models": [
      {
        "name": "Claude Fable 5",
        "commits": 1
      }
    ]
  },
  "added_at": "2026-10-14T00:00:52+00:00",
  "updated_at": "2026-10-14T00:00:52+00:00",
  "sources_reviewed_at": "2026-10-14T00:00:52+00:00",
  "reviewed_by": "editor",
  "human_notes": null,
  "reproduce": null,
  "body_md": "Ammaar Reshi had Claude Fable 5 reverse engineer SkyRoads, a 1993 DOS game by Bluemoon Interactive, directly from `SKYROADS.EXE`. Claude recovered every file format and rewrote the engine as about 3,000 lines of portable C11 that runs on macOS, Windows, Linux, the web and iOS, and replays the original attract demo tick for tick. The README credits the port to Reshi and Claude (Fable 5), reverse engineered in roughly a day; Reshi's post on X describes 30 minutes from EXE to iPhone.\n\nThe original executable was disassembled and the formats and algorithms recovered from the machine code. `docs/FORMATS.md` specifies every file format, and `re/notes/` documents the game logic with the EXE instruction address for each constant. The new engine links only SDL2, executes no original code and reads the unmodified retail data files. Nuked-OPL3 emulates the OPL2 sound chip.\n\nIt reproduces the original's 36.0036 Hz timing, fixed-point physics and pre-baked perspective renderer. The strongest check is `DEMO.REC`, the 1993 demo recording of raw input. Replayed through the new physics, it completes the whole demo road, which requires jump arcs, boost pads, sticky tiles, collisions and a hidden landing autopilot to be exact. That replay runs as a regression test with `ctest`. Because the formats are fully decoded, a Python tool can build new tracks and splice them into a copy of `ROADS.LZS`. The repository contains no Bluemoon files; players download the freeware data from bluemoon.ee.",
  "ai_use_excerpts": null
}
