DX-Ball's sound-pan calculation recovered
A C function from the 1996 Windows game recovered with REA, passing 3,205 tests against the original x86 code.
The full story
This is one of REA's official showcases, from a larger reconstruction of the 1996 Windows game DX-Ball. When a brick is hit, the game turns its horizontal position into a left/right stereo pan for the sound. The agent used REA to inspect that function, follow it back to the brick-hit code and read the constants from the executable, then wrote it as readable C.
The rebuilt function passes all 3,205 test cases run against the original x86 code, and compiles to the same 63 bytes. The wider project has recovered board handling, brick hits, animations, particles and bonuses. Ball physics, power-ups and Windows integration are still to come.
How it was done
Tools
Themes
Loading themes…
Sources
From the maker's own write-up or code. We summarise what they report; we haven't tested it ourselves.
- Awesome REA list: DX-Ball's sound-pan calculation
The step-by-step showcase: the prompt, REA's queries and evidence, the C function and the tests.