GameDirector: Decoupling Gameplay Logic from Rendering for Player-Configurable Game World Models

Zijun Lin, Zhiyang Deng, Yuzhe Wu, Bihan Wen, Yeying JinarXiv 2026

TL;DR

GameDirector is a novel agentic framework that bridges the gap between hard-coded game engines and generative world models by decoupling rule-based gameplay logic from visual rendering. By introducing an intelligent "director" layer to handle state tracking, action planning, and rule enforcement, it achieves near-perfect mechanics consistency while retaining the open-ended creative flexibility of generative video models.

What Problem Does This Paper Address?

Recent interactive game world models (like Genie or Matrix-Game) can generate realistic video environments driven directly by player inputs. However, because these models are trained end-to-end on raw pixels, they struggle to maintain strict, underlying game mechanics. Generative models frequently suffer from "broken mechanics"—forgetting to deplete health bars accurately, ignoring skill cooldowns, or failing to trigger game-over states.

Traditional game engines solve this with hard-coded rules, but they lack the open-ended flexibility and easy customization of generative AI. The authors of GameDirector tackle this trade-off, seeking a middle ground that delivers both rock-solid rule enforcement and highly customizable, player-driven game generation.

Overview of GameDirector bridging hard-coded rules and generative modeling

Methods

GameDirector splits the gameplay loop into two distinct roles: the Director (the Agentic Control Layer) and the Painter (the Video World Model).

  1. Player-Configurable Initialization: Before a match starts, players can freely customize the battle scene, select characters, adjust initial health points (HP), tweak attack strengths, and even mix-and-match character skill sets.
  2. The Agentic Control Layer (Director):
  3. Visual Understanding: Two lightweight ResNet-18 networks analyze the generated frames. SituationNet estimates spatial distance and angles every 5 seconds, while AttackNet runs every 0.25 seconds to detect fine-grained hit events.
  4. State Tracking: Numerical values like HP and skill meters are updated deterministically based on the signals from AttackNet.
  5. Action Planning: A 2B parameter Large Language Model (Gemma-4-E2B-it) acts as the boss AI, selecting tactical moves based on the current spatial context and the player's configured skill cards.
  6. Rule Enforcement: Validates all actions against strict game logic (e.g., verifying cooldowns or overriding inputs with a "dying" state when HP hits zero).
  7. Controllable Generation (Painter): The validated actions are converted into a structured text prompt. A Diffusion Transformer (DiT) world model, fine-tuned from Wan2.2-TI2V-5B, takes this prompt and renders the next sequence of gameplay frames.

Datasets

To train and evaluate the framework, the authors built a comprehensive, state-annotated gameplay dataset using an automated collection agent across three action-oriented games:

  • No Rest for the Wicked (Game N)
  • Vampire (Game V, anonymized for copyright)
  • Hollow Knight (Game H)

The resulting dataset contains 51,786 non-overlapping 5-second clips (totaling roughly 72 hours of gameplay) covering 13 distinct characters. Crucially, every clip is temporally synchronized with exact keyboard/mouse inputs, character positions, facing directions, and numerical combat states.

Key Insights and Ideas

  • Arithmetic belongs outside the video model: Trying to force a neural network to implicitly learn math (like tracking exact health deductions) from pixel supervision degrades rapidly over long horizons. Externalizing this logic to a deterministic state tracker guarantees consistency.
  • LLMs make excellent plug-and-play Game AI: By utilizing a lightweight LLM as an action planner, the boss behavior becomes inherently context-aware and adaptive. It can strategically choose between a gap-closer or a melee attack based on distance without needing any task-specific fine-tuning.
  • Cross-Character Skill Transfer: Because the logic layer operates on abstract "skill cards," players can assign a unique skill from one boss to an entirely different character (even across different games). The world model successfully interprets the text prompt to render the transferred skill seamlessly.

Key Results

  • Mechanics Fidelity: GameDirector achieved 98.5% to 99.6% mechanics fidelity over 1-minute rollouts, whereas traditional end-to-end world models frequently broke rules, scoring between 21% and 34%.
  • Decision Quality: The LLM planner improved boss decision-making quality by more than 39.9% over baseline settings, reaching up to 93.0% accuracy under visual-language model (VLM) judging.
  • Real-Time Performance: By overlapping perception tasks and leveraging a lookahead window for the LLM, the framework completely hides planning latency. It achieves a steady 16.7 to 17.4 FPS closed-loop gameplay experience on standard GPU setups.

Limitations and Future Work

While GameDirector significantly improves rule consistency, its state tracker is still bottlenecked by the perception accuracy of AttackNet. If the visual understanding module misses a rapid hit event, the numerical health state will fail to update.

Additionally, the framework currently relies on template-based text prompts to guide the world model. The authors note that future iterations will explore integrating more structured intermediate representations—such as 3D bounding boxes, coarse 3D geometry, or articulated skeletons—to achieve even more stable and fine-grained visual control.

Summary updated

BibTeX
@misc{lin2026gamedirector,
  author = {Zijun Lin and Zhiyang Deng and Yuzhe Wu and Bihan Wen and Yeying Jin},
  title = {{GameDirector: Decoupling Gameplay Logic from Rendering for Player-Configurable Game World Models}},
  year = {2026},
  eprint = {2609.25652},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.25652},
}
Figure