我也成功把《战地1942》移植到了移动端网页,现在iPhone和Android用户可以直接在浏览器里玩完整多人对战了!🤯 Claude Co...

·

产品与工具 · 2026/11/05

开发者成功将《战地1942》移植到移动端网页,现在iPhone和Android用户可直接在浏览器中体验完整多人游戏。通过Claude Code构建的图形层,将Direct3D指令转换为WebGL,实现了分辨率可调。唯一问题是竖屏模式下部分内容(如手臂或车内视角)会被裁剪。此外,游戏和服务器已从v1.0演示版升级至v1.61最新版,并修复了多个多人游戏bug。

展示了在移动网页上运行经典PC游戏的可行性,技术实现巧妙,为游戏移植和云游戏提供了新思路。

I managed to port Battlefield 1942 to mobile web too

So now it's playable as full multiplayer on iPhone and Android from their browser! 🤯

Claude Code built its own graphic layer that translates Direct3D (DirectX) instructions to WebGL, sitting between the game's machine code and the browser, which means we can change the resolution any way we want!

Only issue is you get some stuff cutting off (like the arms below or inside vehicles) because the game was never meant to run in portrait mode of course!

在原站观看视频

<hr />@levelsio: Okay I just upgraded Battlefield 1942's game and server from v1.0 (the demo) to v1.61 (the latest version) on https://bf1942.pieter.com

That involved another round of decompiling it and lots of new bug fixes to make it work in the web on multiplayer

But it works now and the game

在原站观看视频

资讯配图

资讯配图

阅读原文

参与讨论