Skip to content

benfrankel/pyri_state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flexible game states

License Crates.io Downloads Docs

pyri_state is a bevy_state alternative offering flexible change detection & scheduling.

#[derive(State, Clone, PartialEq, Eq)]
struct Level(usize);

app.add_systems(StateFlush, state!(Level(4 | 7 | 10)).on_enter(save_progress));

Read the documentation or check out the examples folder for more information.

Bevy version compatibility

bevy version pyri_state version
0.14 0.2
0.13 0.1

License

This crate is available under either of MIT or Apache-2.0 at your choice.

Remaining tasks

  • Unit tests
  • How does flushing states once per frame interact with FixedUpdate?

About

A flexible `bevy_state` alternative

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache-2.0
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages