Procedural World Generation
Paste the following prompt into your AI chat to install this skill:
Please install @user_3c6cb52e/procedural-gen-sh-u2lq35 according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
Procedural generation often fails because randomness is not reproducible. Maps, loot, and terrain may work once, but bugs are hard to reproduce, players cannot share worlds, and parameter tuning is polluted by call order or hidden global state. It fits workflows where you do not want to hand-author every map, especially when results must be reproducible from a seed for debugging, daily challenges, or shareable worlds.
How It Works
The core idea is determinism: generate plain data first, then let rendering or gameplay consume it. The skill covers seeded RNG, fBm noise, dungeon layout, and weighted tables. Key steps include:
- Create one seeded RNG and pass it explicitly through generation functions instead of relying on a global
random. - Match the technique to the content: noise for continuous heightmaps, space partitioning or carving for rooms and corridors, and weighted tables for rarity-based drops.
- Write results into
int[][], dictionaries, or graph structures, decoupled from drawing. - Validate reachability, spawn safety, and exit paths before shipping; reject or repair failed layouts.
- Tune with a fixed
seed, then sweep multiple seeds to check distributions rather than one lucky map.
Boundaries
It does not paint the generated grid into an engine tilemap, route AI over the generated graph, or design hand-paced levels. Use godot-tilemap, unity-tilemap-2d, game-ai, or level-design as adjacent capabilities when needed. Common pitfalls include correlated noise fields from shared seeds, unrenormalized octaves, unbounded placement loops, and nondeterministic inputs such as time, physics, or hash randomization leaking into generation.
Use Cases
- Debug roguelike dungeon bugs by regenerating rooms, corridors, and reachability with the same seed.
- Build survival heightmaps with fBm noise, using separate seeds for elevation and moisture before checking biome distribution.
- Design loot selection with weighted rarity tables and a pity system to avoid long miss streaks.
- Tune daily-challenge generation with a fixed seed, then sweep multiple seeds to validate room connectivity and spawn safety.
Best For
- Indie roguelike developers who need reproducible rooms, corridors, and loot from one seed.
- Client engineers building survival terrain who need to debug heightmaps, biome correlation, and island shaping.
- Gameplay designers working on rarity and loot who need reproducible weighted tables and miss-streak control.
- Level tooling leads who need clear boundaries between procgen and hand-authored pacing.
Related Skills
Creates themed learning sites by generating flashcards, lessons, quizzes, index, and progress pages into a deployable website.
End-to-end mathematical optimization modeling with Gurobi and Python, covering data validation, code generation, solving, result analysis, and iterative revision.
Executes an Eversheet Web CDP login using externally supplied baseUrl, username, and password, then verifies the page reaches a logged-in home state.
Clarify product goals, user flows, pages, data, and permissions, then output an implementation-ready development prompt and lightweight spec.