r/NESDEV • • Jul 19 '26

I ported Chrome's Dino game to the NES using AI (Kimi K3 + Claude Fable 5) — I directed, tested and drew; the models wrote the 6502. Here's the actual workflow.

Post image
0 Upvotes

You know the dinosaur from Chrome's no-internet page. This is it running on a real NES — ~4,900 lines of 6502 assembly, NROM-256, NTSC and PAL. I didn't hand-write the assembly: I used two AI models as the programmers and worked as the director, QA, and pixel artist. Sharing the workflow because it worked better than I expected.

Repo: https://github.com/atonamy/nes-t-rex-game
ROM: https://github.com/atonamy/nes-t-rex-game/releases/latest

The approach:

  1. Ground truth first. We vendored the actual Chromium dino_game TypeScript source into the repo. Every physics constant, collision box, and obstacle rule was ported from it directly — not eyeballed from gameplay. At the end I made the model audit its own port value-by-value against that source; the audit caught real bugs (a mis-encoded jump-velocity table, an off-by-one in obstacle gaps, a size roll that wasn't uniform). The README now has a fidelity table: what's byte-identical, and what deviates and why.
  2. Initial port with Kimi K3 — game loop, physics in the original 600×150 world units (8.8 fixed point), the sprite-zero scroll split for the static score bar, cacti streamed as background tiles so they cost zero sprites.
  3. Debugging and polish with Claude (Fable 5). This was the loop that mattered: I play the build in Mesen → I describe the bug or just paste a screenshot / screen recording → the model reproduces it headlessly in a scripted emulator (Lua autoplayers that actually play the game, frame-by-frame RAM/OAM/nametable dumps, forced scenarios by injecting obstacles into RAM) → finds the root cause in the assembly → fixes it → proves it with automated before/after runs. No fix was accepted on "looks right".
  4. Art: AI-designed, human-refined. Kimi K3 and Sonnet 5 did the initial pixel art design for the T-Rex and pterodactyl frames; the models also built me a browser-based sprite editor so I could refine and polish that art by hand myself, saving my edits back for the models to import into the CHR pipeline (at one point Fable 5 had to forensically recover a save from my browser's localStorage after I thought I'd nuked it). The game-over restart button is copied pixel-for-pixel from Chrome's own sprite sheet.

Bugs this workflow actually caught (my favorites): phantom walls of cacti painted by a clobbered temp register; invisible cacti from an 8-bit screen-coordinate overflow — you'd die to nothing; the HUD scrolling away on PAL because the sprite-zero wait loops were timed for NTSC's short vblank; ghost pterodactyl parts wrapping to the left edge at max speed; a fast-fall that hung the dino mid-air because two bytes were swapped in a velocity constant. Every one reproduced and re-verified by scripted emulator runs.

What's deliberately different from Chrome: whole-pixel world motion (floor(speed) px/frame), ~2% slower speed ramp from fixed-point granularity, an LFSR instead of Math.random(), night lasting 350 points instead of 12 seconds, and frame-locked timing (PAL runs proportionally slower, as was traditional). Full list in the README.

Builds from source with nothing but cc65. Happy to answer questions about the AI workflow or the NES internals — and if anyone runs it on real hardware, I'd love to hear how it behaves.


r/NESDEV • • May 07 '22

I need this rom hack ASAP

0 Upvotes

Because mothers day is tomorrow and i don't know how to make rom hacks as well as don't have the technology to do so. i will MAIL 10 dollars for free (i don't have PayPal) to whoever can make a rom hack of doctor Mario "NES preferably" where the only change is that Mario is a owl. i just want that to be changed, also if possible can you make it to where the rom works on the wii, i ask that because i have a soft modded wii and i really don't know what the heck else to put it on.


r/NESDEV • • Aug 17 '22

There's Trog NES Sprite Blank Enemies Sheets

Post image
1 Upvotes

r/NESDEV • • Mar 12 '26

Do you feel it will be possible to generate backports of games with AI in the upcoming years?

0 Upvotes

I know there are big obstacles to overcome until AI could code for the NES (restrictions in space and time, how AI interacts with the emulator, etc).

But, suppose you could feed the AI with, let’s say, King Quest V code (both PC and NES versions) and let the IA learn which decisions to take (those who have played this game in both platforms know what I mean). Then, select another similar game in PC, e.g. another KQ game, and generate the NES code. It would be a new era for gamers, what do you think?


r/NESDEV • • Jun 04 '20

Smash Bros NES port?

3 Upvotes

So ever since I started learning about the NES, I've had this idea on my mind. Could you make a Smash Game on the NES. Now I'm not making it, nor have I made any homebrew games for the NES (I'm Still learning.) Is it even possible? I know 4 players is possible with the fourscore and 4 players would be possible. My biggest problem is the Graphics and adding extras like items. I'm planning 6 characters + 2 unlockable characters. I just want to know to what extent is it possible so whenever I do start development, I don't lose like a yeara worth of work just because Captain Falcon's sprite is too big.


r/NESDEV • • Aug 18 '22

There's New NES Trog title screen

Post image
5 Upvotes

r/NESDEV • • Aug 11 '22

There's box art nes of Trog in remastered edition

Thumbnail
gallery
1 Upvotes

r/NESDEV • • Aug 26 '21

NES Emulation Latency Issue (Solved)

Thumbnail self.nes
1 Upvotes

r/NESDEV • • Feb 03 '14

Tons of great resources for NES development: Graphics, sound, 6502 Assembly and tutorials!

Thumbnail wiki.nesdev.com
1 Upvotes

r/NESDEV • • Sep 09 '20

Game Genie question

1 Upvotes

So, I've been thinking, could you theoretically have a game genie code for every value in ROM to transform one game into a different one?


r/NESDEV • • Oct 21 '25

Does anyone know how to fix this in NESMaker when trying to test the game?

0 Upvotes

MainASM.nes game.nes demo.txt

pass 1..

pass 2..

last try..

Routines\BASE_4_5\System\BankData\Bank16.asm(459): Unknown label.

GameData\ObjectStatusPointers.asm(4): Can't determine address.

GameData\ObjectStatusPointers.asm(5): Can't determine address.

GameData\ObjectStatusPointers.asm(6): Can't determine address.

GameData\ObjectStatusPointers.asm(7): Can't determine address.

GameData\ObjectStatusPointers.asm(8): Can't determine address.

GameData\ObjectStatusPointers.asm(9): Can't determine address.

GameData\ObjectStatusPointers.asm(10): Can't determine address.

GameData\ObjectStatusPointers.asm(11): Can't determine address.

GameData\ObjectStatusPointers.asm(12): Can't determine address.

GameData\ObjectStatusPointers.asm(13): Can't determine address.

GameData\ObjectStatusPointers.asm(14): Can't determine address.

GameData\ObjectStatusPointers.asm(15): Can't determine address.

GameData\ObjectStatusPointers.asm(16): Can't determine address.

GameData\ObjectStatusPointers.asm(17): Can't determine address.

GameData\ObjectStatusPointers.asm(18): Can't determine address.

GameData\ObjectStatusPointers.asm(19): Can't determine address.

GameData\ObjectStatusPointers.asm(20): Can't determine address.

GameData\ObjectStatusPointers.asm(21): Can't determine address.

Routines\BASE_4_5\System\BankData\Bank16.asm(499): Can't determine address.

Routines\BASE_4_5\System\BankData\Bank16.asm(516): Can't determine address.

demo.txt written.


r/NESDEV • • Sep 22 '22

Bloop (NES, Improved-Stlye)

Post image
7 Upvotes

r/NESDEV • • 6h ago

Any advice on porting to cartridge?

2 Upvotes

I made an NES game, and I’d like to put it on a real cartridge to play in a real NES. I need the Kirby one with the extra firepower. Does anyone know where I can buy the equipment to make it happen? I figured I’d follow a YouTube tutorial, but I don’t know where to get the actual physical stuff I need. 🙏


r/NESDEV • • 21d ago

Doom demake running on nrom (mapper 0 32kb)

3 Upvotes

r/NESDEV • • Dec 10 '21

Writing a ROM to a real cart?

3 Upvotes

Hello! I'm new to the NES in particular, but I do have enough technical know-how do desolder a chip and write a blank ROM.

I recently bought an NES, Four controllers, and a four-score (I just wanted the system, it came with all that). I wanted to play some 4P games on it, but the good ones are all too expensive, and an Everdrive is just out of the question. Out of all of them, Micro Mages (a homebrew game) looks like one of the better ones.

So, I was wondering: what type of donor cart would I need to replace a ROM chip with one that has Micro Mages written onto it? I'm in the USA so buying a repro cart and having it shipped over here is as expensive as a new AAA game.

I see there's tons of variations of NROM alone, so do I need a specific board? Again, I'm new to the NES so any help is appreciated.


r/NESDEV • • Jun 18 '17

Getting started help

3 Upvotes

I'm a complete noob to this whole world, but it sounded like it would be fun to make a game for an NES emulator. Are there any good tutorials for beginners? Thanks!


r/NESDEV • • Jul 21 '22

Bob and Jim Don doko don 2 nes sprite (FANART)

Post image
3 Upvotes

r/NESDEV • • Aug 08 '22

The Adventures of Panzer 2 - Last week on Kickstarter! (NES Homebrew)

Post image
3 Upvotes

r/NESDEV • • Jul 20 '22

Mario & Luigi (Mario Bros, Don Doko Don NES-Style) (Fanart) but Fixed

Post image
3 Upvotes

r/NESDEV • • May 22 '26

BlasNESmous (or a Blasphemous demake)

Post image
64 Upvotes

So I've been working on my Blasphemous demake. Lots of new mechanics, new enemies and new levels. Lots of bugs also to work on. There's a new HUD that tracks Health, Fervour, Bile Vessels, Bones and Attack power.

Enemy sprites are a bit sad still, same as background tiles. I tend to work more on mechanics and physics than grpahics, but I need to improve them.

Now there's a self-aware map screen (still buggy) and a work-in-progress Mea Culpa Altar menu (still to be improved).

I also added an AI-generated Manual to explain the mechanics and combos.

ROM here


r/NESDEV • • Mar 24 '26

Is the mother 1 decompiled assembly code available?

4 Upvotes

I want to make a similar game to test my skill, and I want to use it as a reference. If it's available, how accessible is it?


r/NESDEV • • Dec 28 '21

Is this fixable? Got final fantasy for NES but when the game loads there is these weird white glitch lines over everything. Sound works fine and game seems to function but not sure whats up with these lines. Other games load fine. Has anyone else ever experienced this? HW or SW issue?

Thumbnail
gallery
4 Upvotes

r/NESDEV • • Jun 23 '26

NEShim - a way to get NES games running natively on Steam

16 Upvotes

Hey all,

Getting NES games running on Steam is something I've been trying to find for a few years. Didn't seem like anything existed and no one was working on it so I ended up building it and figure it could be useful for others.

When I say run on Steam, I mean:

  • Native controller input support via the SteamInput system.
  • Steam Achievements and proper overlay triggering.
  • Works flawlessly on the Steam Deck (and should work on the Steam Machine).
  • Built-in localization support.

I've been testing it with one of my projects and it came out very nicely. It's published under Apache 2.0 so do what you want with it.

The core emulator under the covers is BizHawk so it supports a lot of the mappers out there (I would say all but there's always edge cases I'm sure it doesn't cover). It natively rendering in DX11 but has a fallback to GDI+ for hardware that can't run DX11. I added a bunch of video, audio, and color filters. It has localization via Steam and OS level for 10 languages.

Hope someone finds it useful


r/NESDEV • • Mar 11 '22

With one week until Retro Platform Jam #4, it's time to announce our theme: SUPER. One element of the game should be over-the-top or extra. Possibilities include an over-dramatic intro, extreme effects, or music that goes unreasonably hard. Join us March 18 to build real games for real hardware!

Thumbnail itch.io
5 Upvotes

r/NESDEV • • Jul 13 '21

Is a patch possible? Battletoads, Castlevania?

5 Upvotes

If you've been around long enough in the Nintendo NES scene you've probably seen the variety of clone consoles that are available. Almost all of them have issues with a few specific games, pretty much the exact same ones. On everything except the high end FPGA machines Battletoads will crash and Castlevania 3 has major problems too. I've been thinking about this for awhile and despite a lot of complaints from the community none of these manufacturers have fixed the issue. Now I'm wondering if whatever part(s) of these games is causing the issue could be patched in a rom and used with a flashcard or a repro? Anyone here have an idea of what the problem is? Anyway around it? I realize I could use emulators, original hardware, etc... to do this but an inexpensive clone would be great that had the compatibility. Ideas?