I too struggled with the transition from Pyglet to cocos at the beginning. 
You can check out my GitHub page (https://github.com/Art9681) that has 
several simple games I have been working on. All of the demos require the 
pymunk library (www.pymunk.org). Some also require the pyglet_util file for 
pymunk which isnt in the standard library. You can get it here and save 
this file to the pymunk folder after installing pymunk (
https://code.google.com/p/pymunk/source/browse/trunk/pymunk/pyglet_util.py?r=501).
 But 
you can see how I set up my structure. I usually do the following:

1. Create a main.py file that calls director (the class that deals with 
windowing and stuff)
2. Director calls a scene located in scenes.py
3. The current scene calls my layers or the scrolling manager if the map 
scrolls. 
4. Most of my actual game logic occurs at the layer level. 

Hang in there. You will have your epiphany soon and it will click. 



On Monday, July 29, 2013 7:19:02 AM UTC-5, Brandon Jumbeck wrote:
>
> Thank you for that information Claudio Canepa, will check out the 
> examples you pointed out and its good to know I am not completely off base. 
> Thanks again for your help.
>

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to