Sounds like time for a refactor!
I try to revisit work done a few weeks back, see if my documentation is clear to me, and if not, refigure what I've done (since it's not THAT old I can get "back into it" pretty quick), and improve my notes accordingly.
"an anonymous genius" wrote:
U want to know whether you should have a kind of hierarchy with the event loop where one loop takes precedence over another. Or should the main loop be mutating like a plugin for each game state. When the modal dialog comes up it changes the game state that changes the event handlers. Personally i would try to keep the event handlers for the input pluggable, like your state machine idea. To me, i think of the input hardware as constant, so that should be one thing. And then when the game changes, the behavior triggered by the input naturally changes. So that would be your state transition in your state machine. But you may want to do the opposite. ... Maybe the roku system favors the hierarchical looping. Sometimes may want to avoid fighting the framework too much.
Sounds like maybe you want a stack of components instead of a hierarchy.