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 : Done! proj.android : Done! proj.win32 : Done! proj.winrt : Done! proj.wp8 : Done! proj.mac : Done! proj.blackberry : Done! proj.linux : Done! proj.marmalade : Done! proj.tizen : Done! proj.wp8-xaml : Done! 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
原文链接:https://www.f2er.com/cocos2dx/346811.html