{
  "api_version": "1.0.0",
  "slug": "super-mario-64-gba-ai-port",
  "url": "https://reversedwithai.com/p/super-mario-64-gba-ai-port",
  "markdown_url": "https://reversedwithai.com/p/super-mario-64-gba-ai-port.md",
  "json_url": "https://reversedwithai.com/p/super-mario-64-gba-ai-port.json",
  "title": "Adapted Super Mario 64 movement code for GBA with Claude",
  "tagline": null,
  "summary": "Claude Opus 5.5 wrote the code, test harness and engineering notes for a GBA adaptation of Super Mario 64 movement and collision. Tests report bit-exact physics and a four-level demo in emulators; physical GBA hardware has not yet been tested.",
  "target": {
    "name": "Super Mario 64",
    "type": "game",
    "type_label": "Games and mods"
  },
  "platform": "Nintendo 64 to Game Boy Advance",
  "models": [
    "Claude Opus 5.5"
  ],
  "tools": [
    "GBA porting",
    "physics tests"
  ],
  "outcome": "partial",
  "outcome_label": "Partial",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": null,
  "checks": {
    "source_available": "yes",
    "repro_steps": "yes",
    "real_hardware": null,
    "independently_verified": "no"
  },
  "author": {
    "name": "Kodoque1",
    "url": "https://github.com/Kodoque1"
  },
  "sources": {
    "repository": "https://github.com/Kodoque1/sm64-gba",
    "writeup": null,
    "discussions": [],
    "all": [
      "https://github.com/Kodoque1/sm64-gba"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/github-card/a3b99724-bab9-474f-ae42-728f527666a2.webp",
    "credit": "Image: GitHub (Kodoque1/sm64-gba)"
  },
  "commit_history": {
    "commits": 3,
    "ai_commits": 3,
    "ai_days": 1,
    "first_ai_commit": "2026-10-18",
    "last_ai_commit": "2026-10-18",
    "credited_models": [
      {
        "name": "Claude Opus 5.5",
        "commits": 3
      }
    ]
  },
  "added_at": "2026-10-20T13:40:16.133326+00:00",
  "updated_at": "2026-10-20T13:40:16.133326+00:00",
  "sources_reviewed_at": "2026-10-20T13:40:16.133326+00:00",
  "reviewed_by": "editor",
  "human_notes": null,
  "reproduce": "For the emulator demo, use Docker and the repository’s Dockerfile, then run make fetch && make test && make gba-opt-test && make demo. Open build/demo/sm64demo.gba in mGBA. The default build includes no ROM assets; importing a user-supplied sm64.z64 is optional and only used for the original model and level meshes. Physical GBA hardware is not yet reported as tested.",
  "body_md": "This project adapts Super Mario 64's movement and collision code to the Game Boy Advance's 16.78 MHz ARM7, which has no floating-point unit. A software-rendered demo wraps the adapted gameplay in four levels. The default demo uses collision geometry and a wooden figure; an optional import step uses assets from a ROM supplied by the user.\n\n### How it was done\n\nThe README explicitly credits Claude Opus 5.5 with writing the code, test harness and engineering notes. The project uses the human-made SM64 decompilation as its behavioral reference and compares Mario's state bit for bit against that reference. Optimization work is checked through frame replays, collision queries, emulator cycle timing and a second cycle-oriented emulator.\n\n### Results\n\nThe project reports an average 4.9× speedup for the movement code while preserving exact results, plus a four-level demo that reaches 30 fps on 99% of frames in a scripted emulator tour. A separate scripted check compares Mario's position after every frame. The author says physical GBA hardware has not yet been tested. The ROM is built locally; none is included in the repository.\n\n### Reproduce\n\nWith Docker, build the provided image, then run make fetch, make test, make gba-opt-test and make demo; open build/demo/sm64demo.gba in mGBA. The default demo does not require a game ROM. To display the original model and levels, use your own compatible ROM with make import ROM=path/to/your/sm64.z64 and rebuild the demo.",
  "ai_use_excerpts": null
}
