Cocos2D Study - Preparation & Installation

简介: ----------------------------------------------------------------------------------------------------- 1.

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

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

 

目录
相关文章
|
9月前
|
网络安全 Python Windows
pyspark--完美解决 Could not find a version that satisfies the requirement 安装包名字 (from versions: )
pyspark--完美解决 Could not find a version that satisfies the requirement 安装包名字 (from versions: )
490 9
|
Ubuntu Unix Linux
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
|
6月前
|
Python
【Python】解决Can‘t find model ‘en‘. It doesn‘t seem to be a shortcut link, a Python package or a valid
在使用以下代码时,报错Can’t find model ‘en’. It doesn’t seem to be a shortcut link, a Python package or a valid path to a data directory.
89 1
|
Java 应用服务中间件 Apache
An incompatible version [1.2.7] of the APR based Apache Tomcat Native library is installed
An incompatible version [1.2.7] of the APR based Apache Tomcat Native library is installed
An incompatible version [1.2.7] of the APR based Apache Tomcat Native library is installed
|
开发工具
Warning! This package referenced a Flutter repository via the .packages file that is no longer avail
Warning! This package referenced a Flutter repository via the .packages file that is no longer avail
141 0
Warning! This package referenced a Flutter repository via the .packages file that is no longer avail
|
网络协议
解决Sublime包管理package control 报错 There are no packages available for installation
解决Sublime包管理package control 报错 There are no packages available for installation 真的是哔了狗了,要不是我机智的重新安装了一个新的,我特么都不知道错在哪。
1562 0
解决Sublime包管理package control 报错 There are no packages available for installation
Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, se
错误提示: Severity Code Description Project File Line Suppression StateError This project references NuGet package(s) that are missing on this computer.
1056 0