Cocos2d-x 101 encounter/directory
1. Installation and environment setup-xcode
2 Scenes, Director, Layers, Sprites
3. Create an image menu
4. Create a new scenario on HelloWorld
5. Add a sprite.
5.1 scale down sprite and display it completely
6 action, mobile sprite
3.0 Click Event, CCTouchDelegate has been disabled
8 use the touch event mobile genie
1. Installation and environment setup-xcode
Use cocos2d-x in xcode
1. Download and create a project download and unzip the cocos2d-x-3.0beta2 (current version January 2014)
cd
cocos2d-x-3.0beta2/tools/project-creator
project-creator hejiasheng$ ./create_project.py
2. Start the project
Open the project file (start. xcodeproj) from xcode)
/Users/hejiasheng/iOS-01/start/proj.ios_mac
localhost:proj.ios_mac hejiasheng$ ls -l
total 0
drwxr-xr-x 25 hejiasheng staff 85021423:01 ios
drwxr-xr-x 6 hejiasheng staff 20421423:01 mac
drwxr-xr-x 5 hejiasheng staff 1703410:08 start.xcodeproj
Or go to the directory and click (start. xcodeproj)