Box2d development environment for cocos2d-x

Source: Internet
Author: User

The native box2d is written in C ++. However, because of the awesome engine, it has been transplanted to multiple language platforms, such as flash, Java, js, C #, and python. Since I used cocos2d-x to develop the game, so we learn C ++ version, first set up the box2d environment.


The latest version of box2d is 2.3.0 ,. This version has completed the vs2012 and xcode5 projects. Under Box2D_v2.3.0/Box2D/Build/, you can see the vs2012 and xcode5 folders. Open the project directly.


The box2dtestbed that comes with the cocos2d-x is actually an official test example of box2d. Here, to learn about box2d, you can directly look at the official project. Open the xcode project, as shown in figure


If you can run it successfully, you will see the above interface. All the test examples are in it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.