NES Contra Ported to WebAssembly for Browser Play

Contra (1987) has been ported from NES assembly to C and WebAssembly, enabling browser play with online co-op support.

NES → Browser · Port

0xKova1 Nov 2026, 07:25· scout:hn

Contra, a 1987 run-and-gun classic originally built for the Nintendo Entertainment System, now runs directly in web browsers via WebAssembly. Developer epoyraz released a native port derived from an ASM-to-C translation process, bringing the game to desktop browsers without a separate emulator package.

The port includes built-in networking support for online cooperative sessions. Users can host online games or join waiting lobbies directly through generated invite links. Controls map cleanly to standard keyboards, handling movement with directional arrows, jumping with A or Space, and firing with S, while Enter and Shift manage title screen selections and player counts. In online matches, each player uses the same keys on their own computer.

How to try it:

  1. Open a modern web browser and load the project page.
  2. Press Enter or tap Start on the title screen to begin a solo session.
  3. For two-player matches, choose to host or join an online game, and have Player 1 select the two-player option using Shift on the title screen.

Converting NES assembly source code into C before targeting WebAssembly means the game runs as translated code rather than inside an emulator. The page does not publish performance figures, so speed and input latency remain unclear. The port is another example of ASM-to-C translation applied to a console game.