BACK TO CARTRIDGESDOWNLOAD BYOK BUNDLE (.JSON)
CLS-03 · ProcGen & RoguelikeVERSION 1.4.0 · 2,181 INSTALLS
Roguelike BSP Dungeon & Spire DAG Architect
Deterministic Mulberry32/SplitMix PRNG room graphs, WFC tile solvers, and anti-crossing Spire act maps.
ENGINE: godot4ENGINE: unityENGINE: phaserENGINE: universalAI: codeAI: text
npx aigameskills add roguelike-dungeon-architectSKILL.MD · INSTRUCTION MANUAL
## Non-Negotiable ProcGen Invariants 1. **Never Call `Math.random()`**: Inject a serializable seeded PRNG (`mulberry32(seed)`) partitioned into independent sub-streams (`mapRng`, `lootRng`, `enemyRng`) so opening a chest never mutates next floor layout! 2. **Pacing Constraints on DAG Maps**: - Floor 1 is always `Combat`; Floor mid-act has guaranteed `Treasure`; Pre-Boss floor is always `Rest/Campfire`. - Enforce zero edge crossings between adjacent columns `(x1 < x2) => (nextX1 <= nextX2)` and forbid back-to-back Elite/Rest rooms unless relic-overridden. 3. **Connectivity Proof**: Run BFS flood-fill from spawn to exit + every key/shop room; reject or carve fallback corridors before returning the level.
BUNDLED SCRIPTS & REFERENCES (1)
references/seeded-prng.ts
export function createMulberry32(seed: number): () => number {
let state = seed >>> 0;
return function nextRandom(): number {
state = (state + 0x6d2b79f5) >>> 0;
let t = Math.imul(state ^ (state >>> 15), 1 | state);
t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
};
}
LIVE CRT SKILL PLAYGROUND
COST: 5 MANA