西风逍遥游
|
a1f977ffc8
|
feat(procgen): add level.roguelike generator + detail layer
Add a seed-driven room-and-corridor dungeon generator inspired by
RoguelikeGenerator Pro, and extend Grid2D with a per-cell detail layer so
generators can carry wall-autotile direction masks, floor-pattern variants
and scattered decor tiles alongside the semantic grid.
- new algorithm "level.roguelike": rooms/corridors, configurable rules
(roomCount/min/max, corridorStyle, floorPattern, decorDensity/Set,
autotile, padding/spacing/corridorWidth), deterministic from a seed
- Grid2D.setDetail/getDetail + detail() accessor (palette/GID compatible)
- procgen.autotileGrid(grid): write 8-bit wall-direction masks into any grid
- procgen.randomSeed(): fresh non-zero seed helper
- examples/roguelike-generator: interactive 2D/2.5D render test with CC0
dungeon tileset (Buch, OpenGameArt)
- test/roguelike_generator.cpp: reproducibility, structure, rules, manual
fill, autotile, randomSeed (8 cases, all pass)
- docs: procgen module page + user guide shortcut table
|
2026-08-15 17:56:42 +08:00 |
|