# How to use Codex to port openage to the browser

Codex helped port openage to WebAssembly, preserving existing simulation code while adapting native systems. The experimental prototype has limited gameplay and is not ready for general release.

Agent: Codex
Tools: Codex, openage, WebAssembly, WebGL 2
Category: Games & simulation
Date: 2026-07-27

Outcome: The experimental browser port supports one map, core unit activities, a HUD/minimap and a basic opponent, but lacks major features and is not stable enough for general release.

## Steps

1. Ported openage's existing simulation and related game systems to run in the browser.
2. Adapted desktop OpenGL rendering to WebGL 2.
3. Replaced native game-loop, UI, filesystem and audio paths with browser-compatible equivalents.
4. Reused converted game assets from the author's legally owned copy.

Human oversight: The author assessed supported features and explicitly reported instability and substantial missing functionality.

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

Canonical URL: https://agentsinuse.com/use-cases/codex-to-port-openage-to-the-browser/
