# I ported Return to Castle Wolfenstein to the web with multiplayer in an hour using AI

DevFeed: [I ported Return to Castle Wolfenstein to the web with multiplayer in an hour using AI](<https://devfeed.tech/articles/i-ported-return-to-castle-wolfenstein-to-the-web-with-multiplayer-in-an-hour-using-ai-105118.md>)

Original publisher: [Read original article](<https://levels.io/ported-return-to-castle-wolfenstein-to-web-with-ai>)

Author: Pieter Levels

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

Content type: article

Language: en

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

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

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [cd](<https://devfeed.tech/tags/cd.md>), [deflate](<https://devfeed.tech/tags/deflate.md>), [fable](<https://devfeed.tech/tags/fable.md>), [filesystem](<https://devfeed.tech/tags/filesystem.md>), [game](<https://devfeed.tech/tags/game.md>), [games](<https://devfeed.tech/tags/games.md>), [gpl](<https://devfeed.tech/tags/gpl.md>), [https](<https://devfeed.tech/tags/https.md>), [i386](<https://devfeed.tech/tags/i386.md>), [installer](<https://devfeed.tech/tags/installer.md>), [iso](<https://devfeed.tech/tags/iso.md>), [multiplayer](<https://devfeed.tech/tags/multiplayer.md>), [native](<https://devfeed.tech/tags/native.md>), [networking](<https://devfeed.tech/tags/networking.md>), [opengl](<https://devfeed.tech/tags/opengl.md>), [protocols](<https://devfeed.tech/tags/protocols.md>), [quake](<https://devfeed.tech/tags/quake.md>), [tech](<https://devfeed.tech/tags/tech.md>), [the-web](<https://devfeed.tech/tags/the-web.md>), [web](<https://devfeed.tech/tags/web.md>), [wolfenstein](<https://devfeed.tech/tags/wolfenstein.md>)

## AI overview

The author reports porting Return to Castle Wolfenstein's multiplayer mode to the web in about an hour of work, using Fable. The port started from the GPL iortcw source and adapted Emscripten patches from Wwasm, a single-player-only port; because multiplayer code differed substantially, the author manually grafted the relevant changes and fixed renderer initialization. The engine was compiled to WebAssembly with GL4ES translating OpenGL 1.x calls to WebGL2. Multiplayer networking was restored, and a matching native dedicated server was built from the same source. Game data was extracted from the 2001 CD installer, then downloaded by the browser before startup and stored in IndexedDB for reuse. The excerpt describes a working multiplayer game, including the mp_beach map.

## Source excerpt

I have to stop boring all of you with my game ports but I ported another game to web with multiplayer, after Quake 1 yesterday and Quake 2 today, I thought, wh...