# A JavaScript Port of River Raid, Rebuilt from the Atari 2600 ROM One Instruction at a Time

Original title: A tribute to one of the best games on the Atari 2600

> Hacker News story 49959865 · language: en · submitted 2026-10-05
> Web version: https://zeli.app/story/49959865
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 20 · by [plicerin](<https://news.ycombinator.com/user?id=plicerin>) · 💬 11
[original](<https://plicerin.github.io/riverraid-rom-port/>) · [HN discussion](<https://news.ycombinator.com/item?id=49959865>)

## Summary

Carol Shaw's River Raid has been recreated in JavaScript by rewriting every 6502 instruction from the original 4,096-byte cartridge. The port runs the real ROM alongside a 6502 core and compares every frame, finding zero differences across 45,000 frames. The river is never stored; it's generated on the fly from a 16-bit random number generator seeded at $A814, making it endless yet identical every play. The port also preserves obscure quirks, like collisions at the top of a newly scrolled block being misattributed to a nonexistent seventh block.

## Key quote

> The river is never stored. The whole game fits in a 4,096-byte cartridge, so each 32-line block of river is built just before it scrolls into view, from a 16-bit random number generator that starts from the same seed, $A814, every game. That is why the river never ends, and why it is the same river every time you play.

## HN discussion (11 comments)

### [plicerin](<https://news.ycombinator.com/item?id=49959866>)

> The cartridge rebuilt from the original ROM, one instruction at a time

### [glimshe](<https://news.ycombinator.com/item?id=49960269>)

> I think that most people who once loved this game moved on from videogames a long time ago. Like almost all games on the Atari, it won't interest the younger generations for more than a few minutes. But I still remember it fondly.

### [pupppet](<https://news.ycombinator.com/item?id=49960629>)

> As a kid I found the gameplay for most Atari 2600 games so shallow I could barely stand to play a game more than a few minutes… except for Combat.  Man with two players, that was fun.

---

## Cite

- Page: https://zeli.app/story/49959865
- Date: 2026-10-05
- Source: plicerin.github.io (https://plicerin.github.io/riverraid-rom-port/)
- Hacker News: https://news.ycombinator.com/item?id=49959865

## Other languages

- zh: https://zeli.app/zh/story/49959865 · markdown: https://zeli.app/zh/story/49959865.md
- ja: https://zeli.app/ja/story/49959865 · markdown: https://zeli.app/ja/story/49959865.md
- ko: https://zeli.app/ko/story/49959865 · markdown: https://zeli.app/ko/story/49959865.md
- de: https://zeli.app/de/story/49959865 · markdown: https://zeli.app/de/story/49959865.md
- es: https://zeli.app/es/story/49959865 · markdown: https://zeli.app/es/story/49959865.md
- ru: https://zeli.app/ru/story/49959865 · markdown: https://zeli.app/ru/story/49959865.md
