Class | AS::Gamestate |
In: |
lib/as_gamestate.rb
|
Parent: | Object |
Gamestates are smart gameloops. They not only handle the game loop for you, but also simplify event handling with actions. They also help you manage resources of inactive states.
Called from AS::Gamestate#events to process individual events. Calls the input method on all objects in the input_listeners array.
Push the Gamestate onto the state stack. The previous gamestate has its release_state method called if releaseOld is true. When the gamestate exits, the previous gamestate has its load_state method called and the argument to AS::Gamestate#stop is returned.