1. 在mac上构建hello world很easy
./setup.py
source /Users/jiangxf/.bash_profile
cocos new AliGame -p com.mxhd.aligame -l cpp -d ali_game
输出
Runing command: new
> Copy template into /Users/jiangxf/dev/cocos2d-x-3.0/ali_game/AliGame
> Copying cocos2d-x files...
> Rename project name from ‘HelloCpp‘ to ‘AliGame‘
> Replace the project name from ‘HelloCpp‘ to ‘AliGame‘
> Replace the project package name from ‘org.cocos2dx.hellocpp‘ to ‘com.mxhd.aligame‘
好,打开/Users/jiangxf/dev/cocos2d-x-3.0/ali_game/AliGame/proj.ios_mac/AliGame.xcodeproj。
执行就可以见到helloworld了
时间: 2024-10-06 01:37:18