Examples of code using states?

Tons of examples around…

Some more complicated ones here:

Some non-game ones but still illustrative here:

A complete single-player game example:

This is a relatively straight-forward example that replaces JME’s (ill-conceived) FlyByCamera with a Lemur InputMapper based AppState:

1 Like