Real-Time World Crafting: Generating Structured Game Behaviors from Natural Language with Large Language Models
Not on the map. Why?
Abstract (arXiv)
We present a novel architecture for safely integrating Large Language Models (LLMs) into interactive game engines, allowing players to "program" new behaviors using natural language. Our framework mitigates risks by using an LLM to translate commands into a constrained Domain-Specific Language (DSL), which configures a custom Entity-Component-System (ECS) at runtime. We evaluated this system in a 2D spell-crafting game prototype by experimentally assessing models from the Gemini, GPT, and Claude families with various prompting strategies. A validated LLM judge qualitatively rated the outputs, showing that while larger models better captured creative intent, the optimal prompting strategy is task-dependent: Chain-of-Thought improved creative alignment, while few-shot examples were necessary to generate more complex DSL scripts. This work offers a validated LLM-ECS pattern for emergent gameplay and a quantitative performance comparison for developers.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 11 of its 73 references that are in the map. First posted on arXiv 19 Oct 2025.
Builds on
11 of 73 references.
References · 11
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2023Structured Chain-of-Thought Prompting for Code Generationcited by 136
- 2023Revisiting Out-of-distribution Robustness in NLP: Benchmark, Analysis, and LLMs Evaluationscited by 96
- 2024Large Language Models and Games: A Survey and Roadmapcited by 91
- 2024A Survey on LLM-based Code Generation for Low-Resource and Domain-Specific Programming Languagescited by 65
- 2023On the Effectiveness of Large Language Models in Domain-Specific Code Generationcited by 44
- 2023Interactive Task Planning with Language Modelscited by 36
- 2024Evaluating and Enhancing LLMs Agent based on Theory of Mind in Guandan: A Multi-Player Cooperative Game under Imperfect Informationcited by 20
- 2024A Simple but Effective Approach to Improve Structured Language Model Output for Information Extractioncited by 16
- 2024Demo Paper: A Game Agents Battle Driven by Free-Form Text Commands Using Code-Generation LLMcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026AI for Games in the Foundation Model Eracited by 2
- 2026AI for Games in the Foundation Model Era15 Sep 2026
Similar, not cited
Close in wording, no citation either way
- 2026Reasoning Capabilities of Large Language Models. Lessons Learned from General Game Playing
- 2025Diamonds in the rough: Transforming SPARCs of imagination into a game concept by leveraging medium sized LLMs ↗
- 2026High-quality generation of dynamic game content via small language models: A proof of concept
- 2024GAMEBoT: Transparent Assessment of LLM Reasoning in Games
- 2025Baba is LLM: Reasoning in a Game with Dynamic Rules
- 2025Does Reasoning Help LLM Agents Play Dungeons and Dragons? A Prompt Engineering Experiment
- 2026OptiArena: Can LLMs Improve Executable Algorithms under Fixed Resource Budgets?
- 2026Distilling Game Code World Model Generation into Lightweight Large Language Models