2,051
edits
(→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:: | 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''' |
edits