OpenGame: Open Agentic Coding for Games

Yilei Jiang Jinyuan Hu Qianyin Xiao Yaozhi Zheng Ruize Ma Kaituo Feng · 2026

Read OpenGame: Open Agentic Coding for Games by Yilei Jiang Jinyuan Hu Qianyin Xiao Yaozhi Zheng Ruize Ma Kaituo Feng (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2604-18394.txt.

Introduction

Jiang and ten colleagues introduce OpenGame, an open agentic framework for building complete web games from high-level designs. Language models handle isolated coding tasks but collapse on full games through cross-file errors and broken scene wiring. OpenGame pairs a growing library of project templates with a living protocol of verified fixes, plus a specialized GameCoder-27B model. Across 150 game prompts, its headless-browser benchmark scores build health, visual usability, and intent alignment at a new state of the art.

Catalog record

CREATORYilei Jiang Jinyuan Hu Qianyin Xiao Yaozhi Zheng Ruize Ma Kaituo Feng
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE47396
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2604.18394

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

OpenGame: Open Agentic Coding for Games Thanks: Corresponding author. Yilei Jiang Jinyuan Hu Qianyin Xiao Yaozhi Zheng Ruize Ma Kaituo Feng Abstract Game development sits at the intersection of creative design and intricate software engineering, demanding the joint orchestration of game engines, real-time loops, and tightly coupled state across many files. While Large Language Models (LLMs) and code agents now solve isolated programming tasks with ease, they consistently stumble when asked to produce a fully playable game from a high-level design, collapsing under cross-file inconsistencies, broken scene wiring, and logical incoherence. We bridge this gap with OpenGame , the first open-source agentic framework explicitly designed for end-to-end web game creation. At its core lies Game Skill , a reusable, evolving capability composed of a Template Skill that grows a library of project skeletons from experience and a Debug Skill that maintains a living protocol of verified fixes-together enabling the agent to scaffold stable architectures and systematically repair integration errors rather than patch isolated syntax bugs. Powering this framework is GameCoder-27B, a code LLM specialized for game engine mastery through a three-stage pipeline of continual pre-training, supervised fine-tuning, and execution-grounded reinforcement learning. Since verifying interactive playability is fundamentally harder than checking static code, we further introduce OpenGame-Bench, an evaluation pipeline that scores agentic game generation along Build Health, Visual Usability, and Intent Alignment via headless browser execution and VLM judging. Across 150 diverse game prompts, OpenGame establishes a new state-of-the-art. We hope OpenGame pushes code agents beyond discrete software engineering problems and toward building complex, interactive real-world applications. Our framework will be fully open-sourced. Figure 1: End-to-end agentic game generation with OpenGame. Diverse users provide natural language specifications to autonomously create fully playable 2D games across distinct genres (e.g., action, educational, and tower defense). Each generated project features a complete game lifecycle seamlessly integrated with multimodal visual and audio assets. 1 Introduction Video games represent one of the sharpest challenges in automated software engineering, demanding a rare fusion of rigorous logic, aesthetic design, and interactive storytelling. Unlike traditional utility software, a playable game is a real-time system whose quality depends on the seamless orchestration of update loops, physics, event handling, asset pipelines, and tightly coupled state across many files. This makes game creation both technically demanding and creatively expensive. Although democratizing game development has long been a goal of the broader creative community, the barrier to entry remains stubbornly high: turning an idea into a playable artifact still requires simultaneous mastery of engine architectures, programming languages, and fragile systems integration. The recent surge in Large Language Models (LLMs) and autonomous code agents has transformed the landscape of software engineering 16 ; 9 . Modern agents can solve discrete algorithmic problems, generate boilerplate, and even navigate mature repositories with impressive competence. Yet when tasked with end-to-end game creation, these general-purpose systems hit a formidable “complexity wall.” Generating a calculator script or an isolated gameplay mechanic is far easier than constructing a coherent, fully playable game. In practice, we observe three recurring failure modes in frontier models: (1) Logical Incoherence : the model loses track of global state across the game loop, producing projects that freeze, fail to terminate, or never realize key mechanics; (2) Engine-Specific Knowledge Gaps : general models often ignore or misuse engine abstractions, re-implementing mechanics from scratch instead of correctly leveraging framework-native physics, scene, and event systems; and (3) Cross-File Inconsistencies : even when individual files look plausible, the overall project frequently breaks due to mismatched asset keys, flawed scene wiring, missing configuration fields, or broken initialization order. These failure modes are precisely what prevent natural-language game design from being reliably brought to life. To bridge this gap, we argue that the field must move beyond generalist code agents toward specialist frameworks that understand the intrinsic structure of games. We therefore present OpenGame , the first open-source agentic framework explicitly designed for end-to-end web game creation. At the core of OpenGame is Game Skill , a reusable capability for translating a natural-language design specification into a runnable project. Game Skill addresses systemic integration failures through two evolving components. First, Template Skill grows an evolving library of project skeletons ( \mathcal{L} ), starting from a single game-agnostic meta template ( \mathcal{M}_{0} ) and expanding into specialized template families such as gravity-based side view and top-down continuous motion. This sharply reduces the search space of generation and stabilizes project-wide structure. Second, Debug Skill maintains a living debugging protocol ( \mathcal{P} ) updated from observed build, test, and runtime outcomes, allowing the agent to accumulate verified fixes and systematically resolve high-frequency integration failures rather than repeatedly rediscovering them from scratch. Supporting this framework is a domain-specialized foundation model, GameCoder-27B . Rather than relying solely on prompting a general code model, we train GameCoder-27B through a three-stage pipeline of continual pre-training, supervised fine-tuning, and execution-grounded reinforcement learning. This pipeline equips the model with engine-specific architectural priors, API usage patterns, and the logical discipline required for multi-file gameplay systems, providing a stronger substrate for the downstream agent. Finally, progress in this area is bottlenecked by evaluation. Validating a game is fundamentally harder than verifying a standard function: code that compiles may still produce an unplayable, inert, or mechanically incoherent experience. Existing software benchmarks predominantly rely on static input-output unit tests, which are poorly suited to the temporal and interactive nature of gameplay. To address this gap, we introduce OpenGame-Bench , an evaluation pipeline designed to assess whether an agent can actually build interactive web games. OpenGame-Bench moves verification from static code analysis to dynamic playability assessment, scoring generated projects along build correctness, visual usability, and intent satisfaction through headless browser execution and multimodal judging. In summary, our contributions are as follows: • We propose OpenGame, the first open-source, tool-augmented coding agent dedicated to generating playable web games from natural-language specifications, enabling creative design ideas to be brought to life as executable artifacts. Central to this framework is Game Skill, an evolving combination of Template Skill and Debug Skill that stabilizes project scaffolding and resolves recurrent cross-file failures. • We train GameCoder-27B, a domain-specialized code model through continual pre-training, supervised fine-tuning, and execution-grounded reinforcement learning to better master game engine patterns, API usage, and complex gameplay logic. • We introduce OpenGame-Bench, a new evaluation paradigm for interactive code generation, moving beyond static unit tests to measure build health, visual usability, and intent alignment for end-to-end web game creation. 2 Related Work Agentic Benchmarks and Software Development. Software development has become one of the premier frontiers for evaluating autonomous agents. SWE-Bench ( 17 ; 37 ) catalyzed the shift toward agentic software engineering by moving evaluation from isolated functions to repository-level issues. Since then, multiple software benchmarks have emerged to test complex unimodal reasoning ( 7 ; 21 ; 39 ) , while efforts to introduce multimodal capabilities have predominantly focused on frontend JavaScript development ( 42 ; 29 ; 38 ) . Beyond pure coding, multimodal agents are frequently evaluated on computer use ( 36 ) and web navigation ( 41 ; 20 ) . More recently, GameDevBench frames game development itself as a testbed for evaluating agentic capabilities ( 8 ) . Progress in this space is especially challenging because agents must not only

Read the complete text