気ままなDevLog

webとかプログラミングについての雑記帳

cocos2d-xで新しいプロジェクトを作成する

macでcocos2d-xの新しいプロジェクトを作成する

コマンドの構成は次の通り

$ cocos new {プロジェクト名} -p {パッケージ名} -l {言語} -d {ディレクトリ}

実行してみる

$ cocos new HelloCocos -p com.katsat.HelloCocos -l cpp -d ~/Desctop
Running command: new
> Copy template into /Users/myuser/Desktop/HelloCocos
> Copying cocos2d-x files...
> Rename project name from 'HelloCpp' to 'HelloCocos'
> Replace the project name from 'HelloCpp' to 'HelloCocos'
> Replace the project package name from 'org.cocos2dx.hellocpp' to 'com.katsat.HelloCocos'
> Replace the mac bundle id from 'org.cocos2dx.hellocpp' to 'com.katsat.HelloCocos'
> Replace the ios bundle id from 'org.cocos2dx.hellocpp' to 'com.katsat.HelloCocos'

上記の場合、デスクトップにプロジェクトフォルダが出来上がっている