Contra NES Native Port - Play the classic in your browser via WebAssembly
Show HN: NES Contra (1987) port (ASM –> C and then C –> WebAssembly)
Experience the 1987 NES classic Contra like never before with this native port that runs directly in your browser. The original assembly code was painstakingly converted to C and then compiled to WebAssembly, delivering authentic gameplay without emulation. Use keyboard controls (arrow keys to move, A/Space to jump, S to fire) or on-screen buttons. Two-player mode is supported: Player 1 selects '2 PLAYERS' with Shift on the title screen, and both players can use the same keys on their own computers online. It's a nostalgic trip that showcases the power of WebAssembly for preserving and sharing retro games.
WOOHOO! HOORAY FOR NOSTALGIA!!!
- erictheguy
Nostalgic!! Took me a few tries to beat the first level haha
- pmarreck
Where's the sound? You can likely ask AI to emulate the sound hardware with WASM!
- raldi
But the Japanese Contra was so much better! https://www.youtube.com/shorts/CiXzONyCDW0
- shinryudbz
Is the audio not supposed to work? I was hoping to hear the legendary tracks!
- msephton
A couple months ago I wrote about this kind of transcompilation hop-skip-jump: https://news.ycombinator.com/item?id=49643284
I used it to get games written in Lua running on SNES and in my own language/engine running on Dreamcast, Wii, Web and more.