A helper library for managing game states in a libgdx project
- gdxstate.jar: The library
- gdxstate-doc.zip: java-doc
GdxState.java, GdxStateManager.java, GdxStateRenderer.java, GdxStateDescriptor.java, AssetLabel.java, Component.java, Debug.java, Pojo.java
Demo-Game.java, Demo2-Game.java
Demo-GameState.java
- Allows you to assign short labels to refer to assets. In libGdx, you refer to assets using only filepath.
- Allows you to run as many states you want on an array stack.
- Allows you to switch from one state to another or cancel a running state with one call.
- Debug output to see manipulations behind the scenes.
- Attach assets to each states - more than one state can share an asset and asynchronous loading of assets
- Create components - data shared by all states.
- Automatically disposes disposable components.
- Access to state's assets' data: progress, done
- Pause rendering on external interruption. In libGdx, even though pause is called, rendering continues
- Pass data to states when you run them
- Set time limit for states. E.G. you can tell a state to run for 5seconds and after five seconds it is cancelled by the renderer