Mac OS X Installation and Setup
A supported environment. See Installation Prerequisites
Cocos2d-x v3.x http://cocos2d-x.org/download
Setting up Cocos2d-x
Download Cocos2d-x and unzip it. (maybe: ~/)
Make sure you have a working environment see Prerequisites above. This means a working Python, having run
/setup.py>, updated your $PATH and run source ~/.bash_profile.
Build and Run
/build, open cocos2d_tests.xcodeproj
- Choose cpp-tests Mac from targets drop-down box
- Click run to compile and run cpp-tests
Running on an IOS Device
- In order to run on IOS Device an IOS Developer Program membership is needed. You can purchase one from Apple: https://developer.apple.com/programs/ios/. The steps to run on iOS device are the same as running in a simulator except you select you device from the device list.
Starting a new project
Once everything above works, you can start a new project! To do this, read our document on the Cocos Command-line tool.