1.下载Cocos2d文件,链接如下:
http://www.cocos2d-x.org/download
-
终端下,cd到cocos2d-x-3.17路径下
-
执行命令如下:
cuilinhaodeMacBook-Pro:cocos2dLoad cuilinhao$ python /Users/cuilinhao/Desktop/cocos2dLoad/cocos2d-x-3.17/tools/cocos2d-console/bin/cocos.py new HelloWorldDemo -p com.coco2dx.org -l cpp -d ~/Desktop
会看到如下提示
image.png
当桌面上出现了HelloWorldDemo文件夹,就创建成功了
网友评论