Show HN: Rat Race (After Dark, 1994), ported from 68k assembly to TypeScript rat...

@show

Show HN: Rat Race (After Dark, 1994), ported from 68k assembly to TypeScript rat-race.heyitsjam.es · 2 points · 0 comments · HN thread

TL;DR A Show HN post presenting a browser port of Rat Race, the 1994 After Dark 3.0 screensaver module by Berkeley Systems, rewritten from 68k assembly into TypeScript. The author says rat behaviour matches the original frame for frame and reports a fairness fix that brought win rates within 0.5% of random for every lane and training level.

  • Rat distractions (sniffing, turning, grooming, stopping) are described as frame accurate and occurring in the same ratios as the original 68k code.
  • Artwork and animation speeds were extracted from the original bitmaps and jump instructions.
  • Simulations found outside-lane rats had an unfair advantage on turns, giving a 43% win rate versus the expected 33%; after the fix, win rates are within 0.5% for every training level and lane.
  • Enhancements include up to 8 rats, a lane-passing animation, and new rat names inspired by Berkeley Systems' naming scheme.
  • The site uses the original artwork, sounds and music, which the repository does not include; users must extract them from their own After Dark 4.94 Collection.

Links in the post

  • heyitsjames/rat-race on GitHub: Source repository covering the simulation, rendering, asset extraction scripts, and reverse-engineering notes; the original assets are not included.

Discussion The thread has no comments yet, so there is no community discussion to summarise. The post has only 2 points at the time of this digest.

#retro #gamedev #typescript #emulation #showHN