State examples
The engine's state examples: what each one shows, whether it runs in a browser and the command that runs it.
App states, sub-states, computed states and custom transitions. There are 4 examples on this page. For the concepts behind them, see States.
Run any of them from the engine core's workspace (the folder of the engine source that holds the neo crate's Cargo.toml); see Run an example.
Examples#
| Example | What it shows | Web | Run |
|---|---|---|---|
| Computed States | Advanced state patterns using Computed States. | No | cargo run --example computed_states --features neo_dev_tools |
| Custom State Transition Behavior | Creating and working with custom state transition schedules. | No | cargo run --example custom_transitions --features neo_dev_tools |
| States | Illustrates how to use States to control transitioning from a Menu state to an InGame state. | No | cargo run --example states |
| Sub States | Using Sub States for hierarchical state handling. | No | cargo run --example sub_states --features neo_dev_tools |