{"by":"tevlon","descendants":82,"id":50319169,"kids":[50323412,50320248,50320687,50322282,50323935,50321448,50319721,50319440,50320829,50322329,50321866,50327086,50320602,50319880,50321948,50331417,50321073,50320710,50322096,50321475],"score":93,"text":"Based on vermiceli&#x27;s annotated disassembly of Contra: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;vermiceli&#x2F;nes-contra-us\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;vermiceli&#x2F;nes-contra-us</a>. Thanks for the great work.<p>I ported it in two steps. First to C: the game logic is translated routine by routine from the 6502 assembly, and checked frame by frame against the original in the Mesen emulator. Then the C code to WebAssembly so it runs in the browser.<p>The cherry on top: online multiplayer, so two players can play co-op over the internet.<p>Source: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;epoyraz&#x2F;nes-contra-us\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;epoyraz&#x2F;nes-contra-us</a>","time":1793474328,"title":"Show HN: NES Contra (1987) port (ASM –> C and then C –> WebAssembly)","type":"story","url":"https://epoyraz.github.io/nes-contra-us/"}