# How to use Claude to port Xonotic to the browser

The author and Claude Code ported Xonotic to browser-based WASM/WebGL2, moved the engine onto a worker, streamed compressed assets and tested direct WebRTC multiplayer across the Pacific.

Agent: Claude (via Claude Code)
Tools: Claude Code, DarkPlaces, Emscripten, WebGL2, Cloudflare R2, WebRTC
Category: Games & simulation
Date: 2026-06-06

Outcome: Xonotic is reported fully playable in the browser without plugins; a real Edmonton–Bangkok one-on-one match held up across the Pacific.

## Steps

1. Compiled DarkPlaces to WASM/WebGL2 and moved the engine onto a worker.
2. Converted textures to Basis Universal/KTX2 and audio to Ogg Vorbis.
3. Implemented an R2-backed streamed filesystem and enabled wasm128 SIMD.
4. Added WebRTC multiplayer and tested a match between Edmonton and Bangkok.

Human oversight: The author profiled a match and tested real cross-Pacific multiplayer; the post does not describe a separate code review process.

Source: [astlouis44 on Hacker News](https://news.ycombinator.com/item?id=48428134)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-port-xonotic-to-the-browser/
