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 facts you define, spawned with
Commands. - Resources: one
RunSeedfor the whole run. The generator reads it; it does not invent a Bevy RNG type.rand0.9 suppliesStdRng. - Systems: insert the seed on
Startup, then spawn from that data..chain()so the spawn system sees the seed. - Schedule:
Startupfor a one-shot map. A streaming map is a laterUpdatesystem that still reads the same seed.
[dependencies]
bevy = "0.20"
rand = "0.9"