Hi,
I just spent a full day trying to include Box2D in my template - to no avail.
can you please create 3 different templates?
1. Box2D, (with cocoslive etc)
2. Chipmunk, (with cocoslive etc)
3. Everything
Thanks
Jo
A fast, easy to use, free, and community supported 2D game engine
Hi,
I just spent a full day trying to include Box2D in my template - to no avail.
can you please create 3 different templates?
1. Box2D, (with cocoslive etc)
2. Chipmunk, (with cocoslive etc)
3. Everything
Thanks
Jo
@jo: what problems did you have? If you use the template that comes with cocos2d 0.81 you can include box2d with little problems. You just have to take into account that you have to disable "treat warnings as errors" in the project settings and the files that include box2d.h must have .mm extension.
When I select the Target and "Info" button, "General" tab - the '+' button under "Direct Dependency" is disabled. Im also not able to find the libbox2d.a to add in the "Linked Library" section. If I directly copy the Box2D directory to the project and compile (as suggested in some forum) I get 5K errors. If templates is not possible (I understand not wanting to clutter up the templates section), please provide screen shots of how to enable Box2D / Chipmunk to the template.
@jo
I had the same issues. Please take a look at http://www.cocos2d-iphone.org/forum/topic/1399.
It is now resolved. Looks like they are working on a template for box2D.
Thanks,
Kenny
You must log in to post.