Open main menu

Difference between revisions of "Advanced Engine Features"

m
→‎RTL ("Return to Launcher") support: Engine::go() was replaced by run() a *long* time ago...
(→‎RTL ("Return to Launcher") support: Cruise and Drascula both support RTL)
m (→‎RTL ("Return to Launcher") support: Engine::go() was replaced by run() a *long* time ago...)
Line 38: Line 38:


'''How to implement it'''<br>
'''How to implement it'''<br>
You can implement this by checking for and honoring the EVENT_RTL event. A much easier way, which also gives you some other advantages (e.g. this also covers EVENT_QUIT), is to regularly poll the return value of Engine::shouldQuit(). If it returns true, you should break out from your main game loop and your Engine::go() method should return to the caller.  
You can implement this by checking for and honoring the EVENT_RTL event. A much easier way, which also gives you some other advantages (e.g. this also covers EVENT_QUIT), is to regularly poll the return value of Engine::shouldQuit(). If it returns true, you should break out from your main game loop and your Engine::run() method should return to the caller.  


'''Relevant Engine API'''
'''Relevant Engine API'''
2,051

edits