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

 

目录
相关文章
|
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月前
|
Android开发
Eclipse提示“The default workspace “xxxx” is in use or cannot be created Please choose a different on
Eclipse提示“The default workspace “xxxx” is in use or cannot be created Please choose a different on
|
数据库管理 Windows
【CodeSmith】The System.Data.SQLite library is not installed on this computer,不能使用SQLite解决办法
【CodeSmith】The System.Data.SQLite library is not installed on this computer,不能使用SQLite解决办法
37 0
装R包(package)error:(as ‘lib’ is unspecified)installation of package had non-zero exit status]
装R包(package)error:(as ‘lib’ is unspecified)installation of package had non-zero exit status]
libcanberra development package not found
libcanberra development package not found
62 0
No package ‘mate-desktop-2.0‘ found
No package ‘mate-desktop-2.0‘ found
61 0
No package ‘gtk+-3.0‘ found
No package ‘gtk+-3.0‘ found
173 0
myeclipse解决Fail to create the java Virtual Machine
今天在打开myeclipse的时候,就显示出 Fail to create the java Virtual Machine 这样的一个窗口出来。 解决的方案就是在myeclipse的安装目录下找到myeclipse.
1005 1
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.
1033 0
|
C语言
Qt Creator新安装后运行一个程序后,出现错误:Error while building/deploying project dict-qt (kit: Desktop Qt 5.10.0 MinGW 32bit) When executing step "qmake"
1、环境介绍:在windows10 Pro下,当前Qt Creator版本,如下图所示: 2、问题描述:当用Qt Creator新建一个工程后,按Ctrl + R 构建/部署时,出现问题,问题截图如下: 3、解决方案:这是由于Qt Creator打开的工程文件夹的绝对路径中存在中文字符,只需将工...
5902 0