Indie developer Pieter Levels (@levelsio) said on X on November 2 that he used Claude Code to decompile the engine of the free Battlefield 1942 demo, port it to C, compile it to WebAssembly and host it at bf1942.pieter.com, where it runs in the browser with online co-op on the Tobruk map. He said the job took about 1 million output tokens, roughly $100 at API prices, while he pays for a $100-a-month Claude subscription. His two main posts drew about 2,200 likes and 340,000 views and reached X trending. These are the author's own claims and community discussion, not independently verified.

Key Takeaways

  • ✓Author's account: Claude Code decompiled the Battlefield 1942 demo engine, which was ported to C and compiled to WebAssembly to run in the browser.
  • ✓The live build at bf1942.pieter.com opens directly, is labeled non-commercial and unofficial, and offers online co-op on Tobruk with no install.
  • ✓Cost: about 1 million output tokens by the author's count, roughly $100 at API prices; he actually pays for a $100-a-month Claude subscription.
  • ✓He said it was much harder than his earlier Quake and DOOM ports, whose engine source code id Software released long ago.
  • ✓Reach: the first post had about 1,100 likes and 230,000 views, the launch post about 1,100 likes and 107,000 views; testers are already reporting bugs.
X Discussion: levelsio Used Claude Code to Decompile the Battlefield 1942 Demo and Put It in the Browser With Multiplayer, Citing About 1M Output Tokens
🖼️Official Media
Click to view high-res
🧭

Heavy Claude Code use: compare subscription limits and API bills

Compare 40 dev plans & simulate token costs vs $20/mo subscriptions

🔬

In-Depth Technical Analysis

Background and Industry Pain Points

Porting old games to the browser has mostly relied on available source code: id Software released the Quake and DOOM engine source long ago, so community ports had a path. Battlefield 1942 has no public engine source, so a port has to start by decompiling binaries, reverse engineering that usually takes senior engineers a lot of time. Indie developer Pieter Levels (@levelsio) said on X on November 2 that he did it with Claude Code, and the posts reached X trending.

Architecture Highlights and Mechanism

As the author describes it, there were three steps: Claude Code decompiled the demo's native engine, the output was turned into C code, and that was compiled to WebAssembly to run in the browser, with multiplayer added. The live build at bf1942.pieter.com is labeled non-commercial and unofficial, framed as a game preservation project, and currently offers online co-op on Tobruk. He stresses it uses the free demo.

Benchmarks and Measured Results

This is not a benchmark and there are no comparable scores. The only cost figure comes from the author: about 1 million output tokens, roughly $100 at API prices, while he pays for a $100-a-month Claude subscription. He has not fully published code size or time spent, and other figures circulating in the community are not cited here.

Developer Guide

You can try it at bf1942.pieter.com; testers have already reported some bugs. The takeaway for developers is that coding agents can now help with heavy work such as decompilation and cross-platform ports, but mind copyright: only reverse engineer software you have the right to, and confirm licensing for commercial projects.

Action HubReady to adopt this in production?

Benchmark side-by-side against alternatives, or calculate monthly token cost vs subscription break-even.

Up NextX Discussion: Former Claude Code Member Thariq Says the $200 Plans Are Enough and "This Is the Most Expensive Intelligence Will Ever Be"
Read Now→