Code2Games: Enabling Coding Agents for Gaming World Generation
On the map: LLM agents and tool use → Multimodal and embodied agents also fits: Software engineering coding agents
Abstract (arXiv)
Generating 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. We propose Code2Games, an agentic framework that builds a structured gaming world upon a base Blender world generated from the same game intent. Code2Games coordinates scene analysis, gameplay planning, constrained gaming-world generation, and gaming-engine customization through a shared scene-gameplay representation with persistent element correspondence. After world generation, Code2Games adapts the generated world to Unreal Engine 5 and employs an execution-guided reconstruction process that uses compilation diagnostics, runtime feedback, and gameplay test results to resolve inconsistencies arising during engine adaptation. To systematically evaluate gaming-world generation, we introduce the GameCode4D benchmark, which comprises ten fixed game prompts spanning different levels of scene and gameplay complexity. We evaluate the generated results across four dimensions: visual quality, interactive fidelity, multimodal artifact quality, and playable-game quality. Experiments demonstrate that, compared with direct gaming-world generation by coding agents and existing baseline methods, Code2Games consistently improves the visual quality and interactive fidelity of generated gaming worlds, as well as the quality of the resulting games after engine adaptation.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Multimodal and embodied agents, one of 16 directions in LLM agents and tool use. First posted on arXiv 4 Oct 2026.
Builds on
No reference list yet.
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026GameCraft-Bench: Can Agents Build Playable Games End-to-End in a Real Game Engine?
- 2026OpenGame: Open Agentic Coding for Games
- 2026World Craft: Agentic Framework to Create Visualizable Worlds via Text
- 2026GameReplica: A Benchmark for Black-Box Visual Game Replication by Vision-Language Agents
- 2026GameDirector: Decoupling Gameplay Logic from Rendering for Player-Configurable Game World Models
- 2025WorldGen: From Text to Traversable and Interactive 3D Worlds
- 2026AutoUE: Automated Generation of 3D Games in Unreal Engine via Multi-Agent Systems
- 2026A2Z GameSpec-Bench: How Faithfully Can Coding Agents Generate Games from Game Design Specifications?