bevy-procedural-generation
Installation
SKILL.md
Bevy procedural generation
When to use
Load this when a level, loot table, or map should be reproducible from a seed, and you need the ECS shape. Spawning the finished layout uses Commands on Startup or a later schedule you already use. Saving the seed belongs on bevy-save-load.
ECS shape
- Components: cell, room, or prop facts you define. The ECS page shows plain
Componentstructs andcommands.spawn. - Resources: one seed and a generator state you own as a
Resource(see bevy-data-resources). Do not invent a Bevy RNG type. - Systems: fill the resource on
Startup, then spawn entities from that data. Use.chain()so spawn sees the finished grid. - Schedule:
Startupfor a one-shot map. A streaming map is a later system onUpdate. Check the docs for a background-thread API before leaving the main schedules.