I created a project based on cocos2d,and now I want to convert to cocos2d-box2d project. What should I do? thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you’re asking this question I believe it will be the easiest solution for you to create a new Cocos2D project based on the Box2D template, then add your existing project’s source code and resource files to the new project. You will have to rename all implementation files from .m to .mm as well, to avoid compiler errors. This is necessary because Box2D is written in C++.