Monkey
Store
Community
Apps
Contact
Login or Signup

Code with several draw loops - structure?

Monkey Programming Forums/Monkey Programming/Code with several draw loops - structure?

Warpy(Posted 1+ years ago) 
what's to stop tFrontEnd, tGame and tWinScreen extending a base type called something like tScreen, and then the app has a pointer to the current screen object?

Then OnUpdate would call currentScreen.Play, and OnRender would call currentScreen.Draw.

That's probably what diddy does, though I haven't looked.