# I decompiled Battlefield 1942 and put it on the web with multiplayer

DevFeed: [I decompiled Battlefield 1942 and put it on the web with multiplayer](<https://devfeed.tech/articles/i-decompiled-battlefield-1942-and-put-it-on-the-web-with-multiplayer-115593.md>)

Original publisher: [Read original article](<https://levels.io/decompiled-battlefield-1942-web-multiplayer>)

Author: Pieter Levels

Published: 2026-11-02T00:00:00Z

Content type: release

Language: en

Sources: [@levelsio (Pieter Levels)](<https://devfeed.tech/sources/levelsio-pieter-levels.md>)

Topics: [multiplayer](<https://devfeed.tech/topics/multiplayer.md>), [browser-game](<https://devfeed.tech/topics/browser-game.md>), [Web](<https://devfeed.tech/topics/web.md>), [Web platform](<https://devfeed.tech/topics/web-platform.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [battlefield](<https://devfeed.tech/tags/battlefield.md>), [demo](<https://devfeed.tech/tags/demo.md>), [direct3d](<https://devfeed.tech/tags/direct3d.md>), [doom](<https://devfeed.tech/tags/doom.md>), [engine](<https://devfeed.tech/tags/engine.md>), [game](<https://devfeed.tech/tags/game.md>), [games](<https://devfeed.tech/tags/games.md>), [multiplayer](<https://devfeed.tech/tags/multiplayer.md>), [network](<https://devfeed.tech/tags/network.md>), [network-stack](<https://devfeed.tech/tags/network-stack.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [open-source-projects](<https://devfeed.tech/tags/open-source-projects.md>), [opengl](<https://devfeed.tech/tags/opengl.md>), [opus-5-5](<https://devfeed.tech/tags/opus-5-5.md>), [port](<https://devfeed.tech/tags/port.md>), [stuff-i-made](<https://devfeed.tech/tags/stuff-i-made.md>), [tech](<https://devfeed.tech/tags/tech.md>), [web](<https://devfeed.tech/tags/web.md>), [webgl](<https://devfeed.tech/tags/webgl.md>), [websockets](<https://devfeed.tech/tags/websockets.md>), [windows](<https://devfeed.tech/tags/windows.md>), [x86](<https://devfeed.tech/tags/x86.md>)

## AI overview

The Battlefield 1942 shareware demo was decompiled and ported to run in a web browser with multiplayer. The author says the work had no existing open source engine or prior port to build on: Claude Code disassembled roughly 57,000 x86 functions, translated them into C, and produced about 100,000 lines, which were compiled to WebAssembly with Emscripten. Around 300 Windows and Direct3D functions were rewritten to use WebGL 2 and OpenGL, and a network stack was built to connect to a multiplayer server over WebSockets. The author reports that it appears to work and invites players to report bugs.

## Source excerpt

I decompiled probably my favorite game ever: Battlefield 1942 and I put it on the web with multiplayer for you to play here: 👉 bf1942.pieter.com 👈 (It's the fr...