On Fri, Aug 29, 2008 at 10:50 AM, dexters <[EMAIL PROTECTED]> wrote: > The flow is more or less like this: > > init() > while not isGameEnd(): > ##wait for event## > changePlayer() > checkGameEnd() > endScoring() > > The question is now, how can I implement the ##wait for event## part. > The idea is, > that the player, e.g. placed a tile and afterwards the control is > given back to the > main flow above. I would like to avoid having a callback mechanism as > it would > obfuscate the flow.
Cocos es events based, so you do not own the main loop. What you can do is fake it using threads or greenlets. We discussed this in the list a month ago (or so), maybe the archive helps you. Lucio. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
