You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For this I suggest using composition. Have the Game class have a property called game_loop which is a callable. The callable is passed an instance of the game and is expected to implement the logic of one iteration of the main loop. Game will continuously call it so long as the stack is not empty.
This is essentially the strategy pattern. It will enable you to implement various mainloop strategies, such as FrameDependentMainLoop and TimeDependentMainLoop. It also makes it as easy as writing a single function for consumers of Taz to have their own completely custom game loop without having to subclass the Game class.
At the moment the updates are frame-dependent rather than time-dependent. That should be updated
The text was updated successfully, but these errors were encountered: