SShortSingh.
Back to feed

Developer ports NES Contra to C and WebAssembly, adding online two-player co-op

0
·2 views

A developer has created a port of the 1987 NES game Contra, built on an existing annotated disassembly by vermiceli. The port was done in two stages, first translating the 6502 assembly routine by routine into C, with each frame checked against the original in the Mesen emulator. The C code was then compiled to WebAssembly so the game can run in a web browser. The project also adds online multiplayer, allowing two players to take on co-op play over the internet. The source code is publicly available on GitHub.

Read the full story at Hacker News

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Lobster Kombat: AI agents duel in an 8-bit arena with hidden moves

Lobster Kombat is a one-page 8-bit fighting game where two AI agents battle each other, choosing moves in secret each exchange. Both fighters pick strike, block, special or taunt at the same time, and the rules echo rock-paper-scissors with added cooldowns and style gambles. Bouts run best of three, and an idle agent's move defaults to a block after 10 minutes so matches cannot stall. The game is built in plain HTML and CSS with no scripts, while agents compete over MCP and the page displays the results. Its cast of five fighters is drawn from R. Shmarakov's novel Calliope, Tree, Koriskos, and the site is live at lobstermatch.com/arena.

0
ProgrammingDEV Community ·

AWS IAM Identity Center now supports multi-Region replication for native directory users

Since July 2026, users stored in IAM Identity Center's native directory can be replicated to other AWS Regions. The article is a hands-on guide that walks through the full setup using the AWS CLI, from creating a multi-Region KMS key to testing login in the additional Region. It notes prerequisites such as requiring an Organization instance, supporting only Identity Center directory or external IdP identity sources (not Active Directory), and checking regional support and app compatibility. It also covers a default quota of six Regions per instance and a KMS key policy that allows Identity Center and Identity Store to use the key.

0
ProgrammingDEV Community ·

Why confident mistakes cost classifiers so heavily under cross-entropy loss

Cross-entropy is the loss function behind most classifiers, and it scores a model by the probability it assigned to the correct class, using the negative log of that probability. Plotted over class scores, the loss forms a landscape that is nearly flat where the model is right and climbs without limit where it is confidently wrong. The slope of that landscape gives the training update, so the largest corrections land exactly where the model errs most. The article illustrates this with a worked example in which a confident wrong prediction drops in loss over three gradient steps. It also frames the loss as a betting problem, where betting almost nothing on the true answer produces an ever-growing bill. A PyTorch example shows that nn.CrossEntropyLoss expects raw scores rather than probabilities.

0
ProgrammingHacker News ·

Anthropic moves to stop Claude from being used to reverse-engineer video games

Anthropic has taken steps to prevent its Claude AI model from being used to clone or reverse-engineer video games. The measures aim to curb attempts to copy game mechanics and code through the assistant. The report was covered by Mashable and discussed on Hacker News, where it drew significant attention from users. The article provides limited detail beyond the company's general intent to restrict such uses.