Hi guys.

I'd like to make a simple web interface to controlling a cocos app. I'm 
having a hard time figuring out how to handle events and threading. I'm 
using the director interface and it's working perfectly on its own!

Let's say that at a basic level I'd like to be able to "emit a signal" that 
can be captured by my app (next scene, previous scene, etc.). Is there a 
good way to handle this without hacking the director interface? I've 
already tried sharing instances between threads (for the purpose of calling 
methods directly) but this doesn't work. Would I be able to register events 
and generate them from another thread that would be captured by the cocos 
app? Ideally I'd like to use Flask for the API but since it has its won 
blocking .run() call I'd need it to be in its own thread.

What do you guys think? Thanks! 
Blaine

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/cocos-discuss/-/bsqURf267HkJ.
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.

Reply via email to