Bevy-Zustände und Laden
Koordiniert Menü, Laden und Spiel mit der Lebensdauer ihrer Entitäten und Ressourcen. Verhindert, dass unfertige Arbeit eines verlassenen Zustands das nächste Level verändert.
bevy-states-loading
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze dies für zuverlässige Übergänge und Bereinigung zwischen Menüs, Ladebildschirmen und Spielablauf.
Wobei hilft er dir?
- Ordnet Entitäten und Ressourcen den Zuständen zu, die ihre Lebensdauer verantworten.
- Startet das Spiel erst mit verfügbaren Pflichtressourcen und meldet fehlgeschlagene Abhängigkeiten.
- Verhindert Eingriffe verlassener Zustände in spätere Level und angesammelte Listener.
Das könntest du fragen
Baue Menü-, Lade- und Kampfzustände für unseren Dungeon-Crawler. Brich das Laden ab, kehre ins Menü zurück und starte einen anderen Dungeon. Nur der zweite erzeugt Gegner, benötigte Assets sind bereit und wiederholte Wechsel sammeln keine alten Entitäten an.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
Bevy — states loading
Use when implementing Bevy menus, loading, level transitions or state-dependent cleanup.
Version and project gate
Inspect Cargo.toml, Cargo.lock, Rust toolchain, exact Bevy release, plugin compatibility, feature selection, schedules, state definitions, asset roots and target backend. Read the matching migration guide before using newer examples. Never turn a task into an engine upgrade without the user’s intent. Read the version-matching official reference when an API decision depends on it.
Work
Declare which entities and resources belong to each state. Gate play on required asset readiness and surface failed dependencies. Choose entry/exit/update hooks from the installed API and prevent a departed state’s work from mutating the next level.
Deliver
A state/ownership table and a full menu-load-play-exit cycle. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Leaving a state does not automatically prove every manually spawned entity or resource was cleaned up.
Acceptance scenario
Change state during loading, return to the menu, load again and check that entity and listener counts do not accumulate. Follow the project’s execution and verification permissions. If execution or a target device is unavailable, provide the reproduction steps and name the remaining uncertainty; do not mark it passed.
Scope and sources
This skill belongs to Talon. Agent selection is restricted by Orqestria’s assigned-agent policy, including forced skill selection; instruction text alone is not an access control. These are original task workflows researched from official documentation, not a copied or endorsed vendor skill.
Enthaltene Dateien 1
SKILL.md
