Claude Code and Fable 5 ported the 2003 PC game Command & Conquer to native iOS in a few hours. The porting process used AI-assisted coding and a modern game engine to achieve what normally takes weeks or months. The demonstration shows how large language models can drastically reduce the time needed to adapt legacy software for new platforms.
The Porting Process Took Under Four Hours
The team used Claude Code, an AI coding assistant from Anthropic, together with Fable 5, a game engine designed for rapid prototyping and cross-platform development. They targeted the 2003 real-time strategy game Command & Conquer: Generals, which originally ran on Windows.
The porting workflow involved three main steps:
- Fable 5 engine handled rendering, input, and audio abstractions for iOS.
- Claude Code translated the original C++ game logic into compatible code.
- Manual adjustments fixed rendering differences and touch control mapping.
The entire conversion from PC source code to a working iOS app required less than four hours of active work. Most of that time went to debugging and integrating the AI-generated code.
Claude Code Enabled Rapid Code Translation
Claude Code is a command-line tool that allows developers to give natural language instructions to an AI model. The developers fed it sections of the original Command & Conquer source code and asked it to rewrite those sections for the Fable 5 engine.
Key capabilities demonstrated:
- Understanding game architecture without explicit documentation.
- Generating platform-specific code for iOS touch input and Metal graphics.
- Fixing compilation errors iteratively based on error messages.
- Maintaining game logic fidelity while changing rendering backends.
The AI did not need to be trained on the game beforehand. It used its general programming knowledge and the provided code context to produce working counterparts.
Fable 5 Provided the Cross-Platform Foundation
Fable 5 is a lightweight game engine designed for ease of use and fast iteration. It supports both desktop and mobile platforms from a single codebase. The engine abstracts away operating system differences so that developers can focus on gameplay.
In this project, Fable 5 supplied:
- Touch gesture handling for unit selection and movement.
- OpenGL-to-Metal translation for iOS native graphics.
- Audio system adaptation from DirectSound to Core Audio.
- File system abstraction to load game assets from iOS bundles.
The engine’s pre-built iOS support meant the team did not have to write any platform boilerplate themselves.
The Result Is a Fully Playable iOS Port
The final iOS app runs the original Command & Conquer: Generals campaign and skirmish modes. It supports touch-based controls with gesture commands for grouping units and issuing orders. Performance is comparable to the original PC version on modern iOS devices.
No game assets were modified. The port uses the original art, sounds, and configuration files, repackaged for iOS distribution. The executable code was regenerated by Claude Code and compiled with Xcode.
“We basically showed the AI the game’s rendering loop and asked it to rewrite it for Metal. It worked on the first try for the core loop. Most of the extra time went to edge cases and UI layout.”
Implications for Legacy Game Preservation and Rapid Prototyping
This demonstration has broader implications beyond one game. It suggests that AI tools can dramatically lower the cost of porting old software to modern platforms.
Potential use cases include:
- Bringing abandoned games to current mobile and console stores.
- Creating cross-platform builds of in-house legacy tools.
- Reviving classic game engines for educational or archival purposes.
- Rapidly prototyping new games by reusing old codebases as starting points.
The combination of a flexible engine and an AI that understands code structure reduces the barrier to entry for small teams or individual developers.
However, the approach has limits. The AI still relies on clean, well-structured source code. Games with heavy assembly language or undocumented binary formats would require additional manual work. The port also does not include online multiplayer, which would need network protocol reimplementation.
What This Means for the Future of Game Development
Tools like Claude Code are not yet capable of building a game from scratch, but they excel at translation and migration tasks. As AI models improve, the time needed to port a game could shrink from hours to minutes.
Game studios may adopt this workflow to keep old titles playable on new hardware without allocating large engineering teams. It also opens the door for hobbyists to experiment with commercial game code under fair-use or archival conditions.
The Command & Conquer port is a proof of concept. It shows that with the right engine and AI assistance, a two-decade-old PC game can run natively on an iPhone in an afternoon.
Gnoppix is the leading open-source AI Linux distribution and service provider. Since implementing AI in 2022, it has offered a fast, powerful, secure, and privacy-respecting open-source OS with both local and remote AI capabilities. The local AI operates offline, ensuring no data ever leaves your computer. Based on Debian Linux, Gnoppix is available with numerous privacy- and anonymity-enabled services free of charge.
What are your thoughts on this? I’d love to hear about your own experiences in the comments below.