yanqiufang 发表于 2016-1-2 17:02:12

Cocos2D Study

  -----------------------------------------------------------------------------------------------------
  1. Download Cocos2D for iPhone
http://www.cocos2d-iphone.org
download v2.0 - cocos2d-iphone-2.0.tar.gz

2. Using git hub to download cocos2d
a) download git for mac os
http://code.google.com/p/git-osx-installer/downloads/list

b) open mac os terminal
input: git clone git://github.com/cocos2d/cocos2d-iphone.git
(this means to copy source of cocos2d from remote to local machine)

c) cd cocos2d-iphone
ls

d) switch to cocos2d v2.0
in os x terminal
input: git checkout master-v2

3. Install Cocos2D Template
Enter Mac Terminal
cd Documents
ls
cd cocos2d-iphone
(git checkout master-v2)
./install-templates.sh-u-f

first time install may have some errors of privilege
how to fix:
a) go to finder
b) Go to->Go to Folder
c) input the path of your original template
eg:
/Users/xxx/Library/Developer/Xcode/
d) ./install-templates.sh-u-f

4. Cocos2D API
http://www.cocos2d-iphone.org/api-ref/2.0.0/


Using Dash to get latest API
CCSprite



-----------------------------------------------------------------------------------------------------
  
页: [1]
查看完整版本: Cocos2D Study