iPhone遊戲開發框架COCOS2D
COCOS2D 是一個iPhone遊戲開發的框架,
可以省掉設計很多遊戲開發的控件,
用既定的模組套用在自己的想法上。
cocos2d 之前的方法過繁瑣,
現在的 0.81 安裝方法超簡單只要兩個步驟。
1. 首先先下載 COCOS 2D
http://www.cocos2d-iphone.org/download
解壓縮後可以看到:

README是說明檔
install_template.sh是自動安裝檔
2. 開啟Terminal終端機程式來執行它
開啟之後 打cd 然後把下載好的目錄拉到Terminal
也就是切換到解開的cocos2d的意思。
然後打./install_template.sh
來執行安裝,
記得前面要打” ./ ”
才能執行install_template.sh文件裡面的script
成功的話終端機會顯示:
cocos2d-iphone template installer
…creating destination directory: /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates/Application/cocos2d-0.8.1 Application/
…copying template files
…copying cocos2d files
…copying CocosDenshion files
…copying cocoslive files
…copying cocoslive dependency files
done!

然後就可以看見COCO2D了簡單吧!
October 7th, 2009 at 11:51
Very good! Thank you for your help!
October 20th, 2009 at 10:52
Good, I like it
November 11th, 2009 at 13:53
thank you
it works
August 10th, 2010 at 03:40
更新一下
新版的是打
“install-templates.sh”
第二步驟打cd後面要一個空格 不然會失敗
August 10th, 2010 at 03:43
另外再補充
Error: This script must be run as root in order to copy templates to /Library/Application Support/Developer/Shared/Xcode
Try running it with ’sudo’, or with ‘-u’ to install it only you:
sudo ./install-templates.sh
or:
./install-templates.sh -u