Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hymm/bevy_prototype_schedule_states
https://github.com/hymm/bevy_prototype_schedule_states
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hymm/bevy_prototype_schedule_states
- Owner: hymm
- License: other
- Created: 2022-03-13T18:20:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-20T06:42:17.000Z (over 2 years ago)
- Last Synced: 2024-04-23T16:08:20.403Z (7 months ago)
- Language: Rust
- Size: 146 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bevy_prototype_schedule_states
This library is a experimental state abstraction for Bevy that is compatible with the built-in `FixedTimestep`. This library works by giving each state enter, update, and exit a `Schedule` and runs these schedules from inside an exclusive system.
## Comparison to Bevy's Builtin State API
### Pros
* Does not use run criteria, so is compatible with Bevy's built-in fixed timestep.
* Simpler, so there is less surprising behavior.
* Can nest states for more complex states.### Cons
* There is no stack so cannot run multiple states at once.
* Potentially less parallelism between systems since it's built on looping inside an exclusive system instead of run criteria.## Usage
See examples in repo.