Game Loop
Control the logic of the game.
For the four state of the game, GameLoop class has different way of processing, and if the state is not one of them, nothing will ve invoked.
GenericSystem.STATE_PLAYING - update the player logic, then the stage and ui, finally will be bullets and enemies.
GenericSystem.STATE_PAUSE - only ui will be updated.
GenericSystem.STATE_MENU - same as pause state.
GenericSystem.STATE_LOADING - only ObjectPool.loadingContent.
If you want to start this thread, please use the method GameLoop.start.
Also, you can use addTask method to add tasks, which will be invoked after the main logic is executed.
Author
KKoishi_