HeadlinesBriefing HeadlinesBriefing.com

NES Contra Ported to WebAssembly with Multiplayer

Hacker News •
×

A developer has successfully ported the classic NES game Contra to WebAssembly, enabling it to run directly in web browsers. The project originated from an annotated disassembly of the original 6502 assembly code, which was first translated into C and verified frame-by-frame against the Mesen emulator. The C code was then compiled to WebAssembly.

A key feature of this port is the addition of online multiplayer, allowing two players to cooperate over the internet. The source code is available on GitHub, demonstrating a meticulous reverse-engineering and translation process from low-level assembly to modern web technologies.

Source: Hacker News · Summarized by HeadlinesBriefing