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?

dawlane(Posted 1+ years ago) 
I concur with Tibit. Using a statemachine is a lot simpler and easier. It's best to think of

Class myApp extends App

Method OnCreate()
End Method

Method OnUpdate()
End Method

Method OnRender()
End Method

End Class

As a ready made game loop and use the Select/Case structure.

If you dig around therevills did an Asteroids game and kindly made the source public. It should give you some ideas.

http://www.monkeycoder.co.nz/Community/posts.php?topic=373&app_id=45