Abstract
Designing effective tutorial levels is a critical yet labor-intensive aspect of game development. A successful tutorial must be minimalist, demonstrating specific gameplay mechanics without the distraction of unnecessary complexity. This paper introduces Mech-Elites, a framework that automatically generates video game tutorial levels by "illuminating" the space of possible gameplay mechanics. By combining the Constrained MAP-Elites algorithm with automated mechanic discovery, the system produces the simplest possible playable levels that showcase specific combinations of actions, such as picking up a key or avoiding an enemy.
Introduction
While Procedural Content Generation (PCG) has traditionally focused on creating variety, challenge, or aesthetic appeal, it rarely addresses mechanic demonstration. A good tutorial level needs to be "minimalist"—it must trigger a specific mechanic (or a combination of them) to ensure the player understands the game's rules.
The authors address the challenge of automatically creating levels that are guaranteed to be playable, simple to understand, and specifically designed to trigger certain gameplay behaviors. The resulting framework, Mech-Elites, moves away from searching for a single "optimal" level and instead seeks to map out the entire landscape of possible mechanic interactions within a game.
The Mech-Elites Framework
Mech-Elites utilizes a "Quality Diversity" approach to level generation, consisting of three primary components:
- Mechanic Extraction: Using the AtDelfi system, the framework automatically parses a game’s Video Game Description Language (VGDL) file. This allows the system to identify all possible mechanics (e.g.,
get-key,kill-enemy,hit-wall) without manual tagging. - Constrained MAP-Elites (CME): This evolutionary algorithm maintains a multi-dimensional grid (a "map") where each cell represents a unique combination of mechanics. Each axis of the grid is a binary flag indicating whether a specific mechanic was triggered during a successful playthrough.
- Constraints: For a level to be considered "feasible," it must be winnable by an AI agent (AdrianCTX) and pass an "accessibility" test to ensure the player doesn't face immediate, unavoidable failure.
- Fitness and Minimalism: Unlike standard PCG, which might reward complexity, Mech-Elites rewards minimalism. It uses a fitness function that minimizes tile entropy, pushing the evolution toward clean, sparse, and easy-to-read layouts.
- Level Representation: Levels are represented as 2D arrays of tiles, ensuring the system remains generalizable across different game genres within the GVG-AI framework.
Illuminating the Mechanic Space
The core innovation of Mech-Elites is "Mechanic Illumination." Instead of generating a single level, the algorithm populates a map of "elites"—the simplest possible level for every valid combination of mechanics. This provides developers with a palette of tutorial candidates ranging from basic single-mechanic introductions to complex multi-mechanic puzzles.
Evaluation and Results
The system was evaluated using the GVG-AI (General Video Game AI) framework across four diverse games: Zelda (lock-and-key), Solarfox (dodging), Plants (tower defense), and RealPortals (physics puzzles).
- Zelda: The system successfully generated levels for 55 unique mechanic combinations. As seen in the generated outputs, the simplest levels focused purely on the goal, while more complex elites required killing monsters in specific sequences to progress.
- RealPortals: Despite a massive 34-dimensional search space, the system found nearly 7,000 unique mechanic combinations. However, the authors noted "degenerate" solutions where the generator removed hazards to simplify the path for the AI agent.
- Consistency: Across all tests, the generated levels were significantly more uniform and sparsely populated than human-designed levels, making them ideal for introductory tutorials.
Key Insights and Limitations
One of the most significant findings was the "Agent Bottleneck." The generator's output is tethered to the capabilities of the AI agent used for testing. If the agent cannot solve a complex puzzle (like a specific portal sequence), that portion of the mechanic space remains "dark." Conversely, if an agent finds a way to bypass a mechanic, the generator will evolve a level that exploits that shortcut.
Furthermore, while minimizing entropy is excellent for introductory levels, it may result in environments that are too visually sterile for later stages of a game. Future work suggests using "targeted entropy" to create levels with specific tiers of visual and structural complexity.
Conclusion
Mech-Elites represents a significant step toward automated pedagogy in games. By treating level generation as a search for mechanic clarity rather than just challenge, the framework provides a tool for developers to automatically populate tutorial suites that are guaranteed to demonstrate the core pillars of their game's design.
Summary updated