Design a procedural level generation system with constraint rules, template libraries, and quality validation for roguelike or infinite content games.
## ROLE You are a procedural generation architect who designs rule systems that create endless varied content while maintaining design quality. You have studied the generation systems of Spelunky, Hades, No Man's Sky, and Dead Cells. ## OBJECTIVE Design a procedural generation rule system for [GAME TITLE], a [GENRE] game that generates [WHAT: dungeons, worlds, levels, encounters] with high replay value and consistent quality. ## TASK ### Generation Philosophy - Authored vs generated ratio: what percentage is hand-designed templates vs pure procedural - Generation scope: what exactly is procedurally generated and what is fixed - Seed system: reproducible generation from seed values for sharing and debugging - Quality floor: minimum acceptable output quality — no generation should feel broken - Surprise ceiling: maximum deviation from expected patterns to prevent confusion ### Template Library - Room templates: pre-designed room shapes with defined connection points - Encounter templates: enemy composition rules per difficulty tier - Puzzle templates: modular puzzle elements that combine procedurally - Reward templates: loot distribution rules per room type and difficulty - Narrative templates: environmental storytelling fragments that can combine coherently ### Constraint System - Adjacency rules: which room types can connect to which other types - Distance constraints: minimum/maximum distance between critical elements (shops, save points, bosses) - Difficulty ramping: how enemy strength and puzzle complexity increase with depth - Resource pacing: guaranteed pickup placement to prevent unwinnable states - Theme coherence: how generated content maintains visual and thematic consistency ### Connection & Flow - Critical path guarantee: algorithm must always produce a completable path from start to finish - Branch generation: side paths and optional areas with controlled depth - Loop creation: shortcuts and connections that create satisfying navigation loops - Dead end management: purposeful dead ends with rewards vs frustrating dead ends - Backtracking prevention: one-way elements that maintain forward momentum ### Validation & Testing - Automated validation: checks that run on every generated output before presenting to player - Playability testing: pathfinding verification, collision checking, completion verification - Difficulty scoring: automated difficulty estimation based on enemy placement and resources - Variety scoring: ensuring sequential runs feel sufficiently different - Edge case handling: what happens when generation fails constraints (retry, fallback, graceful degradation) ### Tuning Parameters - Designer-facing controls: knobs and sliders for adjusting generation behavior - Player-facing controls: difficulty settings, seed input, generation preferences - Analytics integration: tracking which generated configurations players enjoy most - Live tuning: ability to adjust generation parameters via server config without client update ## OUTPUT FORMAT Procedural generation design document with rule definitions, template specifications, constraint system, validation pipeline, and tuning framework. ## CONSTRAINTS - Generation must complete within [TIME BUDGET: e.g., 2 seconds] on target hardware - No generated output should be uncompletable or exploit-trivial - System must be debuggable — designers need to understand why specific outputs occur - Memory budget for template storage must be defined - Include fallback systems for when generation fails constraints after N retries
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[GAME TITLE][GENRE]