cocos2dx 3.0rc如何创建项目
来源:互联网 发布:海岛奇兵高爆升级数据 编辑:程序博客网 时间:2024/05/22 06:43
转自官网的文档。
How to Run cpp-tests on win32
In this article, I will show you how to run cpp-tests on your windows PC.
Environmental Requirements
Cocos2D-X version: cocos2d-x v3.0 (https://github.com/cocos2d/cocos2d-x/)
IDE: Visual Studio 2012
Dependencies: python 2.7
Compile and Run the TestCpp Project
- Download cocos2d-x from our download page and unzip it on your working directory. The structure of the directory should look like as following:
- Open file "cocos2d-win32.vc2012.sln" in "build" folder as fllowing:
- Right click the "TestCpp" project, and select "Set as StartUp Project", then you can compile and run the TestCpp project, here is the screenshot:
How to Create a Empty Project
Prerequisite
At first, you need to download and install python 2.7 to finish the following steps.
Then, you should add the path "[cocos2d-x root]\tools\cocos2d-console\bin\" into your system environment path, don't forget to add a ';' as delimiter. For example, my bin path is "F:\source\cocos2d-x\tools\cocos2d-console\bin", and I will add it to the end of PATH as following:
(Note: The [cocos2d-x root] is the path where you unzip your downloaded cocos2d-x package)
Open cmd and change current path to the bin path, and input the cmd "cocos -h", if it outputs the help message, congratuation, you have added the right path in the environment variables. We can create a project by usingcocos2d-console commands now.
Type "cocos new -h", and you will get the following result :
Now it's time to use the command to create a new empty project.
For example, I want to create a cpp project, then I can type "cocos new MyGame -p com.MyCompany.AwesomeGame -l cpp -d F:/MyProject". This command will create a cpp project under F:/MyProject directory. Here is the screenshot:
How to Compile and Run the Empty Project
Open MyGames.sln in the proj.win32 folder, press "Ctrl-F5" to compiling and running the project. If you compiles and run without any errors, you will get the following results:
运行的时候也可以在命令行直接输入命令cocos run -p win32
还有一个创建项目的方法是在CocosStudio的场景编辑器中可以创建新项目
- cocos2dx 3.0rc如何创建项目
- Cocos2dx 3.0 过渡篇(十八) Cocos2d-x 3.0rc,又一种创建项目方式
- Cocos2dx 3.0 过渡篇(十八) Cocos2d-x 3.0rc,又一种创建项目方式 .
- Cocos2dx 3.0 过渡篇(十八) Cocos2d-x 3.0rc,又一种创建项目方式
- Cocos2dx 3.0 过渡篇(十八) Cocos2d-x 3.0rc,又一种创建项目方式
- 关于cocos2dx 3.0rc在mac 上的创建项目以及发布android
- Cocos2dx 3.0rc 创建工程 并 移植到其他平台
- cocos2dx-3.2之如何创建项目
- cocos2dx 3.1 如何创建一个项目
- cocos2dx 3.4下如何创建项目
- cocos2d-x-3.0rc创建项目
- cocos2dx 3.0 如何新建项目
- cocos2dx 3.0 安装及项目创建
- cocos2dx 3.0 安装及项目创建
- Cocos2dx 3.0 又一种创建项目方式
- cocos2dx-3.0 X-code项目创建
- cocos2dx-3.0正式版的项目创建
- cocos2dx-3.0 python创建项目报错
- 7.跟我学solr---对文件数据添加索引
- Linux 网络编程之原始套接字
- ibatis 表名大小写的区别
- 搭建Ruby on Rails 环境
- qtcreator中编码格式不对无法编码的问题
- cocos2dx 3.0rc如何创建项目
- mysqldump的锁表的问题
- JavaScript处理日期格式化
- late_initcall和module_init
- dos命令大全
- wchar_t*转std::string详解
- 在Eclipse中JFrame自定义图标可以显示,但是导出JAR之后无法显示
- 获取listview的内容,并把这些内容通过短信发送给其他人
- sql server导入excel