All Stories Are One Story: Emotional Arc Guided Procedural Game Level Generation

Yunge Wen, Chenliang Huang, Hangyu Zhou, Zhuo Zeng, Chun Ming Louis Po, Julian Togelius, Timothy Merino, Sam EarlearXiv 2025 · DOI

Abstract

Procedural Content Generation (PCG) often lacks global coherence and ludo-narrative alignment. This paper presents a framework that utilizes universal emotional arcs to guide the generation of both game narratives and levels. By mapping story beats to gameplay mechanics, the system ensures that difficulty and emotional tone scale in tandem, resulting in a more resonant player experience.

Introduction: The Challenge of Global Coherence

While modern Large Language Models (LLMs) can generate impressive local dialogue, procedural games frequently suffer from a lack of overarching structural backbone. This often leads to stories that feel aimless and a "ludo-narrative" disconnect where gameplay mechanics do not reflect the emotional stakes of the narrative. The authors propose a solution rooted in structuralist narratology, using fundamental emotional arcs as generative constraints to bridge this gap.

Methodology: The Emotional Arc Pipeline

The end-to-end system architecture for generating story-driven game levels. All Stories Are One Story: Emotional Arc Guided Procedural Game Level Generation, page 3

The end-to-end system architecture for generating story-driven game levels.

The developed pipeline moves from a high-level story prompt to a playable Unity game through several key stages:

  1. Narrative Modeling: The system employs six fundamental emotional arcs (e.g., Rags to Riches, Icarus) characterized by "Rise" and "Fall" patterns.
  2. Story Graph Generation: Using GPT-4o-mini and AI Chaining, the story is decomposed into a Directed Acyclic Graph (DAG). Each node represents a story beat labeled as "Rise" (positive) or "Fall" (challenging).
  3. Semantic Refinement: The LLM polishes node text to ensure vocabulary and tone align with the intended emotional state.
  4. Entity & Level Generation: Story nodes are converted into game levels (JSON). Crucially, "Fall" nodes generate higher-difficulty enemies, while "Rise" nodes feature friendlier NPCs and superior loot.
  5. Visual Asset Pipeline: The framework integrates Stable Diffusion (v1.5) with LayerDiffusion to generate transparent pixel-art sprites for characters and items.

Ludo-Narrative Alignment and Human-in-the-Loop Design

A core innovation of this framework is using the emotional arc to drive game balance. In a "Fall" arc, the game systemicly increases difficulty, creating alignment between story and play. Furthermore, the system includes a D3.js-based web interface, allowing designers to visualize the story graph, edit nodes, and regenerate assets before finalization.

Evaluation and Results

A screenshot of the final Unity WebGL game prototype generated by the system. All Stories Are One Story: Emotional Arc Guided Procedural Game Level Generation, page 3

A screenshot of the final Unity WebGL game prototype generated by the system.

The authors conducted a user study with 16 participants to compare the "Emotional Arc" version against a flat baseline. Key findings include:

  • Enhanced Enjoyment: Players rated the Arc-based version significantly higher for enjoyment ($p = 0.016$) with a large effect size ($r = 0.789$).
  • High Perceptibility: 81.25% of participants correctly identified the presence of the emotional arc without prior instruction.
  • Coherence: Qualitative feedback indicated that Arc-based stories were perceived as more dramatic and realistic than the linear baseline.
  • Validation: Automated sentiment analysis using the GoEmotions classifier confirmed that generated stories closely mirrored intended non-monotonic shapes (e.g., Rise-Fall-Rise).

Conclusion and Future Work

This research demonstrates that structural narrative patterns can serve as effective generative constraints for AI. While the current system is tied to an Action RPG template, future work aims to explore more complex mechanics and expand the framework to other genres like visual novels and roguelikes to further mitigate LLM biases toward positivity and verbosity.

Summary updated

BibTeX
@misc{wen2025all,
  author = {Yunge Wen and Chenliang Huang and Hangyu Zhou and Zhuo Zeng and Chun Ming Louis Po and Julian Togelius and Timothy Merino and Sam Earle},
  title = {{All Stories Are One Story: Emotional Arc Guided Procedural Game Level Generation}},
  year = {2025},
  eprint = {2508.02132},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.02132},
}
Figure