Commit graph

3 commits

Author SHA1 Message Date
Gered af09c61796 fix state transitions for dead/pending so they happen faster
this removes some "dead" frames when pushing/popping states during the
transition between them where there would be at least 1 tick where
no update/render would be called because the top state would be still
in a "dead" or "pending" state
2022-05-15 20:43:54 -04:00
Gered 2f23bc5ce1 add is_empty method to States
this is intended to allow a game loop to determine if the state
manager is actually doing anything or not, allowing the game loop to
exit out when it determines if there are no states and no more pending
states.
2022-05-15 14:41:23 -04:00
Gered 38e6826440 initial commit 2022-05-15 12:11:46 -04:00