Hi,
here is another game done for pyweek using cocos2d.

download:
http://media.pyweek.org/dl/9/GasMan/gasman-1.0.tar.gz

technical details:
It uses pybox2d.
The integration between pybox2d and cocos2d was done with the
gamelib/box2d_callbacks.py
This file is heavily based on the pybox2d testbed example. But some
modifications were made in the fwDebugDraw class, like adding pixel to
meters ratio.
If you are planning a cocos2d  + box2d game, this file
(box2d_callbacks.py) is  good starting point.

The game also uses SVG levels.
The .svg files contains the physics information like:
   - bodies and shapes
   - static or dynamic shapes
   - shapes data: restitution, friction, density
   - plus sprite info
so coding new levels was relatively easy.

If you are interested in the details, the gamelib/svg_box2d_parser.py
has the implementation.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to