STATE OF AI.

See what AI can do now.

Coding / Creative

A creator reports using Claude to bring Mario’s movement to a GBA demo

The four-level experiment adapts existing Super Mario 64 code, aiming to preserve its movement calculations while simplifying the world around the player.

A white articulated mannequin and two faint earlier poses leap from densely faceted orange terrain toward a violet handheld-shaped open frame, with a simpler orange platform beyond it.
AI-generated editorial illustration by State of AI of carrying game movement into a simpler handheld-sized world. The mannequin and open frame form a conceptual scene, rather than a screenshot or a depiction of testing on physical hardware. · AI-generated editorial illustration by State of AI

What happened

A creator reports using Claude to adapt Super Mario 64’s movement into a playable, four-level Game Boy Advance demo. In an October 18 post, they describe choosing the project, guiding trade-offs and suggesting designs while the assistant handled implementation and testing. The project builds on game code recovered by the n64decomp community, giving the adaptation an existing foundation. To check whether changes preserve the calculations, the project replays recorded inputs against a desktop reference built from that code. Its demo comparison checks character positions frame by frame, while separate tests compare contact with floors, ceilings and walls. GitHub lists a successful run of the project’s automated checks; that is evidence from its own testing system, rather than independent reproduction.[1][3][5][7][8][9][10]

Why it’s interesting

Preserving movement means retaining the calculations behind a landing or contact with a wall as the character’s position and speed change. That creates a particular challenge on the GBA: the handheld lacks hardware dedicated to floating-point arithmetic, the kind of calculation the inherited movement code uses for fractional values. Software must do that work while leaving time to draw the scene. The project’s collision rewrite uses whole-number checks to skip unnecessary calculations, keeping floating-point paths for cases those checks cannot settle. Alongside reduced visual detail, this offers a concrete way to understand the experiment: spend less work drawing the world and checking surfaces while trying to retain the character’s calculated behavior. Earlier Mario GBA projects already exist; Joshua Barretto’s demake explicitly sets perfect recreation of the original mechanics outside its goals, whereas this project makes comparison with inherited movement code a central target.[2][3][6][11][13][14]

Keep in perspective

The documented result is a prototype tested in emulators. Its notes describe reduced detail, a replacement follow camera and a mannequin as the default character, with enemies, coins, moving platforms and doors absent. Those choices substantially narrow the experience being recreated. Even within movement, the comparison has a specific boundary: its desktop reference is not an end-to-end test against the original Nintendo 64 game, which the notes leave for later. Agreement on selected inputs and recorded quantities cannot establish identical behavior in every situation or an identical overall control experience. The creator’s account supports a human-directed adaptation with inspectable checks, without establishing a complete game or performance on a physical handheld.[1][2][3][4][5][7][8]

Sources

  1. Creator account of the Claude-assisted GBA experimentu/Nervous_Cold8493 / Reddit · Primary source
  2. sm64-gba project scope and engineering notesKodoque1 / GitHub · Primary source
  3. Pinned reference and target buildsKodoque1 / GitHub · Primary source
  4. Movement input replay and state loggingKodoque1 / GitHub · Primary source
  5. Playable-demo position comparison scriptKodoque1 / GitHub · Primary source
  6. Optimized collision implementationKodoque1 / GitHub · Primary source
  7. Direct reference-versus-rewrite collision testsKodoque1 / GitHub · Primary source
  8. Repository automated test definitionKodoque1 / GitHub · Primary source
  9. Public test run for revision e45fdfaGitHub Actions / Kodoque1 · Primary source
  10. Original post timestamp and metadataReddit · Primary source
  11. Reference movement and surface-contact routinesn64decomp/sm64 contributors / GitHub · Primary source
  12. GBA hardware and memory referenceJasper Vijn and Tonc community maintainers / gbadev.net · Primary source
  13. GBA floating-point arithmetic contextJasper Vijn and Tonc community maintainers / gbadev.net · Primary source
  14. Earlier SM64 GBA project and its goalsJoshua Barretto / personal Forgejo · Primary source
  15. Contextual handheld photograph: cropped GBA fileEvan-Amos; revision uploaded by DoDoDon / Wikimedia Commons · Primary source
  16. CC0 1.0 reuse termsCreative Commons · Primary source
Back to all stories