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.