Code2Games: Enabling Coding Agents for Gaming World Generation
Code2Games helps coding agents generate consistent game worlds and adapt them to Unreal Engine 5.
Code2Games is an agentic framework that turns a natural-language game intent into a structured world, starting from a Blender scene generated from the same intent. A shared scene-gameplay representation coordinates analysis, planning, constrained generation, and engine customization, then an execution-guided loop uses compilation, runtime, and gameplay-test feedback to adapt the world to Unreal Engine 5. On the ten-prompt GameCode4D benchmark it improves visual quality, interactive fidelity, artifact quality, and playable-game quality versus direct coding-agent generation.
- Shared representation keeps scene elements and gameplay logic aligned.
- Execution feedback repairs inconsistencies during Unreal Engine 5 adaptation.
- GameCode4D uses ten prompts of varying scene and gameplay complexity.
- Improves visual quality, interactive fidelity, and playable-game quality.
- Vendors
- Epic Games
- Products
- BlenderUnreal Engine 5
From the original article
1 min read at huggingface.coGenerating a high-quality gaming world from a natural-language game intent requires joint reasoning about scene structure, spatial layout, gameplay objectives, interactive entities, and executable gameplay logic. Existing coding agents can generate individual assets, scenes, or scripts, but often struggle to maintain consistency across these components.
By Wei Wu, Ziyang Xu, Zeyu Zhang · huggingface.co
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.