1
所需软件
2
安装python-2.7.8.amd64.msi
注意将其中的有一步设置,Add python.exe to path
设置python的环境变量
3
解压cocos2d-x-2.2.3.zip
4
打开命令行窗口,进入:E:\Installed\cocos2d-x-2.2.3\tools\project-creator
输入:python
create_project.py-project Hello -package com.czbk.hello -language cpp
运行结果:
E:\Installed\cocos2d-x-2.2.3\tools\project-creator>python create_project.py -project Hello -package com.czbk.hello -language cpp proj.ios proj.android proj.win32 proj.winrt proj.wp8 proj.mac proj.blackberry proj.linux proj.marmalade proj.tizen proj.wp8-xaml New project has been created in this path: E:\Installed\cocos2d-x-2.2.3\tools\project-creator/../../ projects/Hello Have Fun! E:\Installed\cocos2d-x-2.2.3\tools\project-creator> |
5
进入:E:\Installed\cocos2d-x-2.2.3\projects\,这时候就发现已经有了Hello项目
6
进入:E:\Installed\cocos2d-x-2.2.3\projects\Hello\proj.win32,双击Hello.sln,这时候vs2013就打开了这个项目,截图如下:
对Hello进行编译,效果图如下:
编译器:TDM-GCC