Abstract
This paper presents a two-step generative approach for creating dungeons in the rogue-like puzzle game MiniDungeons 2. Generation is split into two steps, initially producing the architectural layout of the level as its walls and floor tiles, and then furnishing it with game objects representing the player's start and goal position, challenges and rewards. Three layout creators and three furnishers are introduced in this paper, which can be combined in different ways in the two-step generative process for producing diverse dungeons levels. Layout creators generate the floors and walls of a level, while furnishers populate it with monsters, traps, and treasures. We test the generated levels on several expressivity measures, and in simulations with procedural persona agents.
Introduction
In the field of Procedural Content Generation (PCG), commercial games often rely on constructive algorithms like cellular automata or "diggers" because they are computationally efficient. However, these algorithms typically function as "black boxes" that do not evaluate the quality of the gameplay they produce. This paper addresses the challenge of understanding how different generation phases interact by decoupling the architectural layout from the placement of game objects. By separating the roles of the "architect" (layout) and the "interior designer" (furnishing), the authors explore whether this modularity provides better control over the final player experience.
Methodology
The researchers developed a two-step framework for the game MiniDungeons 2, allowing for the combination of three layout creators with three game element furnishers.
Step 1: Layout Creators (The Architects)
- Constraint-Based (CC): Spawns random rooms and uses collision detection to push them apart until they fit within the map boundaries.
- Cellular Automata (CAC): Starts with random noise and applies smoothing rules to create organic, cave-like structures.
- Agent-Based (AC): Uses a "digger" agent that wanders the map, carving out floor tiles as it moves.
Step 2: Game Element Furnishers (The Interior Designers)
- Constraint-Based (CF): Identifies the longest path in the layout to place the entrance and exit, then fills in other objects based on distance rules.
- Cellular Automata (CAF): Places objects based on local tile neighborhoods (e.g., placing monsters near walls).
- Agent-Based (AF): The paper's most novel contribution. Every game object (monsters, potions, traps) is treated as an agent with its own "desires." For 45 turns, these objects move around the map based on heuristics—for example, treasures seek out Goblins to "guard" them, while the unkillable Minitaur tries to move as far from the entrance as possible.
Evaluation and Results
The authors generated a dataset of 9,000 unique levels (1,000 for each of the nine possible creator-furnisher combinations). A subset of 900 levels was tested using three "procedural personas"—AI agents with specific goals: the Runner, the Monster Killer, and the Treasure Collector.
Key Insights
- Modularity Impacts Difficulty: The choice of furnisher has a massive impact on difficulty, regardless of the layout. A layout that feels easy with one furnisher can become a deathtrap with another.
- Emergent Design via Agents: The Agent-Based Furnisher (AF) creates sophisticated setups through simple local interactions. Because treasures "want" to be near goblins, they naturally end up in guarded rooms, creating a classic RPG feel.
- Personas as a Lens: Testing with different AI personas shows that difficulty is subjective. A level might be easy for a "Runner" who ignores enemies but nearly impossible for a "Collector" who tries to grab every trapped treasure.
Quantitative Results
- The "Final Boss" Combo: The CC-CF (Constraint Layout + Constraint Furnisher) combination produced the hardest maps, featuring long, winding paths that forced players to interact with more hazards.
- Path Length: The Constraint-based layout (CC) consistently produced the longest paths, while Cellular Automata (CAC) produced the most open space but also the most isolated wall chunks.
- Safety vs. Danger: The Agent-Based Furnisher (AF) was the most successful at maximizing the distance between the player's start and the most dangerous enemy (the Minitaur), effectively pacing the level's threat.
Conclusion and Future Work
While these constructive approaches are fast, they occasionally produce unbeatable levels because they lack a validation phase. Future work could involve giving furnishing agents more complex decision-making capabilities, such as tree search, to create more tactical object placement. Additionally, using data from procedural personas to provide real-time feedback to the generators could allow the system to automatically tune a level's difficulty to match a specific player's skill level.
Summary updated