<!-- Canonical page: https://reversedwithai.com/p/rea-dino-runner-codex -->
Canonical page: https://reversedwithai.com/p/rea-dino-runner-codex

# Rebuilt Chrome's T-Rex Runner as a tested HTML5 game using REA and Codex

> Codex rebuilt an open-source browser game from REA evidence.

REA inspected the JavaScript of an open-source browser game through Chrome DevTools Protocol, and Codex rebuilt it with regression tests.

## Key facts

- Target: Chrome T-Rex Runner (open-source browser game)
- Category: Websites
- Platform: Browser / JavaScript
- Models: Codex
- Tools: Codex, REA, Chrome DevTools Protocol, Node.js
- Outcome: Works
- Checks: Source available: yes; Repro steps: yes; Real hardware: not reported; Verified by others: not reported
- Author: [zhxunzh84](https://github.com/zhxunzh84)
- Added: 2026-10-15
- Updated: 2026-10-15
- Sources reviewed: 2026-10-15 (editor)

## What was done

zhxunzh84 used REA and Codex to study the scripts of an open-source browser dinosaur runner and rebuild it as a self-contained HTML5 Canvas game with its own tests. A live demo runs in the browser with no build step.

### How it was done

REA, an MCP tool for reverse engineering, found the target browser page through Chrome DevTools Protocol and inspected the loaded JavaScript without changing it. The captured source and evidence went to Codex, which analysed the behaviour, wrote the implementation, reviewed it and orchestrated the tests.

The README names one subtle detail as the main lesson: movement uses elapsed time, but speed increases once per eligible update. Keeping that distinction mattered more than matching the original look, so the artwork is drawn from scratch.

### Results

The result is a single HTML file with a speed slider, auto acceleration, swept collision checks and a session best score. Embedded unit and integration tests run the actual game logic, and a Node.js harness runs the HTML script with mocked browser interfaces. The author describes it as practice in evidence-based investigation and checking AI-assisted code.

## What the commit history shows

None of the 5 commits in the public repository credits an AI. Many tools add no credit, so this does not show the AI was not used.

Measured by this site from public git history.

## Questions about Chrome T-Rex Runner (open-source browser game)

### What is the Chrome T-Rex Runner (open-source browser game) project?

REA inspected the JavaScript of an open-source browser game through Chrome DevTools Protocol, and Codex rebuilt it with regression tests. It is listed under Websites for Browser / JavaScript.

### Which AI model was used on Chrome T-Rex Runner (open-source browser game)?

The entry names Codex. The tools named alongside are Codex, REA, Chrome DevTools Protocol and Node.js.

### Did the AI reverse engineering of Chrome T-Rex Runner (open-source browser game) work?

Its author reports that it works. Checks recorded: source available yes, repro steps yes.

### Is the source code for Chrome T-Rex Runner (open-source browser game) available?

Yes. The code, patches or tooling are public: https://github.com/zhxunzh84/rea-dino-reverse-engineering. The sources give enough steps to reproduce it.

## Sources

- [Repository](https://github.com/zhxunzh84/rea-dino-reverse-engineering)

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: zhxunzh84 (2026). Rebuilt Chrome's T-Rex Runner as a tested HTML5 game using REA and Codex. Reversed with AI. https://reversedwithai.com/p/rea-dino-runner-codex
