Cocos2D Study - Preparation & Installation

-----------------------------------------------------------------------------------------------------

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
 
 
 
----------------------------------------------------------------------------------------------------- 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值