<!-- Canonical page: https://reversedwithai.com/p/resident-evil-2-nintendo-ds-engine-claude -->
Canonical page: https://reversedwithai.com/p/resident-evil-2-nintendo-ds-engine-claude

# Built a Nintendo DS engine for Resident Evil 2 from the PS1 executable's rules, with Claude Code

> Resident Evil 2 rebuilt as a native DS engine, running on real hardware.

Eray reverse engineered how the PS1 game works and had Claude Code write a native DS engine that plays all 125 rooms of disc 1. It runs on a real DSi XL.

## Key facts

- Target: Resident Evil 2 (PS1, PAL disc 1)
- Category: Games and mods
- Platform: PS1 to Nintendo DS
- Models: Claude Opus 5.5
- Tools: Claude Code, devkitARM, libnds
- Outcome: Partial
- Checks: Source available: yes; Repro steps: not reported; Real hardware: yes; Verified by others: not reported
- Author: [Eray](https://github.com/eray1605)
- Added: 2026-10-18
- Updated: 2026-10-18
- Sources reviewed: 2026-10-18 (editor)

## What was done

re2ds is a native Nintendo DS engine for Resident Evil 2 (PS1, PAL disc 1, Leon). It is not an emulator. Converters turn data from your own disc into DS formats, and a C engine for devkitARM and libnds plays them with the original game's rules, reverse engineered from the PS1 executable. Commits are co-authored by Claude Opus 5.5.

### How it was done

The author posted it to r/ReverseEngineering as built with a reverse engineering workflow and Claude Code. The engine includes a bytecode interpreter for the game's room scripts, covering every opcode used on disc 1, plus tank controls, enemy AI, camera cuts, doors, items and the status screen on the lower screen. No game data is in the repository and none may be shared.

### Results

It is playable from the opening movie through Leon's disc 1 rooms, with all 125 rooms, pre-rendered backgrounds with depth masks, collision, zombies that chase and grab, shooting and reloading, and sound and music. A photo shows it on a Nintendo DSi XL. The author says it is not finished and asks for help.

## What the commit history shows

55 of 90 commits in the public repository credit an AI, over 14 days between 2026-10-14 and 2026-11-15. Credited: Claude Opus 5.5 (53), Claude Fable 5.2 (1), Claude Sonnet 5.5 (1).

Measured by this site from public git history.

## Questions about Resident Evil 2 (PS1, PAL disc 1)

### What is the Resident Evil 2 (PS1, PAL disc 1) project?

Eray reverse engineered how the PS1 game works and had Claude Code write a native DS engine that plays all 125 rooms of disc 1. It runs on a real DSi XL. It is listed under Games and mods for PS1 to Nintendo DS.

### Which AI model was used on Resident Evil 2 (PS1, PAL disc 1)?

The entry names Claude Opus 5.5. The tools named alongside are Claude Code, devkitARM and libnds.

### Did the AI reverse engineering of Resident Evil 2 (PS1, PAL disc 1) work?

Its author reports that it partly works. Checks recorded: source available yes, real hardware yes.

### Is the source code for Resident Evil 2 (PS1, PAL disc 1) available?

Yes. The code, patches or tooling are public: https://github.com/eray1605/re2ds.

## Sources

- [Repository](https://github.com/eray1605/re2ds)
- [Discussion](https://reddit.com/r/ReverseEngineering/comments/1x85dp5/a_port_of_resident_evil_2_for_the_nintendo_ds)

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: Eray (2026). Built a Nintendo DS engine for Resident Evil 2 from the PS1 executable's rules, with Claude Code. Reversed with AI. https://reversedwithai.com/p/resident-evil-2-nintendo-ds-engine-claude
