在quick-cocos2d-x中创建新工程
来源:互联网 发布:dede源码下载 编辑:程序博客网 时间:2024/05/16 14:33
Create a new project
Before creating new project, make sure you have set the QUICK_COCOS2DX_ROOT
environment variable to the right path, refer to:
- Setup quick-cocos2d-x development environment for Mac
- Setup quick-cocos2d-x development environment for Windows
~
Create a new project with Mac
Launch Terminal
Application, come to the directory for the new project:
> cd ~/Desktop
Run create_project.sh
, and specify the package name of your project:
> $QUICK_COCOS2DX_ROOT/bin/create_project.sh com.mycompany.games.game01
create_project.sh
shell script will use the last part of package name as your project directory name, so the upper command will create a directory with the name game01
.
After that, you can see the following result:
~
Then you can use the player to run a project. Alternatively, open a project file in the proj.ios
or proj.android
directory, test it on a real device.
~~
Create a new project with Windows
Similar to the Mac environment, you just run create_project.bat
in the cmd.exe
window.
CAUTION: Don't run create_project.bat
or create_project.sh
in a cygwin window
> %QUICK_COCOS2DX_ROOT%\bin\create_project.bat com.mycompany.games.game01
~~
Specify the screen orientation when creating a new project
use -o
argument to specify the screen orientation, the legal value could be landscape
or portrait
. e.g.:
> $QUICK_COCOS2DX_ROOT/bin/create_project.sh -o landscape com.mycompany.games.game01
If you want to change the screen orientation for your existing project, please see How to set the screen orientation of the game 。
Before creating new project, make sure you have set the QUICK_COCOS2DX_ROOT
environment variable to the right path, refer to:
- Setup quick-cocos2d-x development environment for Mac
- Setup quick-cocos2d-x development environment for Windows
~
Launch Terminal
Application, come to the directory for the new project:
> cd ~/Desktop
Run create_project.sh
, and specify the package name of your project:
> $QUICK_COCOS2DX_ROOT/bin/create_project.sh com.mycompany.games.game01
create_project.sh
shell script will use the last part of package name as your project directory name, so the upper command will create a directory with the name game01
.
After that, you can see the following result:
~
Then you can use the player to run a project. Alternatively, open a project file in the proj.ios
or proj.android
directory, test it on a real device.
~~
Similar to the Mac environment, you just run create_project.bat
in the cmd.exe
window.
CAUTION: Don't run create_project.bat
or create_project.sh
in a cygwin window
> %QUICK_COCOS2DX_ROOT%\bin\create_project.bat com.mycompany.games.game01
~~
use -o
argument to specify the screen orientation, the legal value could be landscape
or portrait
. e.g.:
> $QUICK_COCOS2DX_ROOT/bin/create_project.sh -o landscape com.mycompany.games.game01
If you want to change the screen orientation for your existing project, please see How to set the screen orientation of the game 。
- 在quick-cocos2d-x中创建新工程
- quick-cocos2d-x创建工程
- quick-cocos2d-x 2.2.5 创建工程
- cocos2d-x创建新工程
- Cocos2d-x开发之在Elipse创建新工程
- 在Quick-Cocos2d-x中嵌入浏览器
- 在Quick-cocos2d-x中使用LuaXML
- cocos2d-x 初学,新工程创建
- cocos2d-x-3.2 如何创建新工程
- cocos2d-x-3.2 如何创建新工程
- cocos2d-x 3.5版 创建新工程
- cocos2d-x创建新工程的方法
- 【quick-cocos2d-x 游戏开发】quick cocos2dx 3.2最稳定版 创建工程+sublime调试运行
- cocos2d-x 创建工程
- 编译Quick Cocos2d-x Android 工程
- 在Quick-cocos2d-x中使用sqlite3数据库
- Cocos2d-x基础:创建新工程(2014.3.10更新)
- cocos2d-x-2.1.4如何创建新工程
- 上传文件到服务器
- linux下常用拷贝命令
- javascript call()方法和this对象的使用
- Mac OS启动服务优化高级篇(launchd tuning)
- 个人气场 修炼
- 在quick-cocos2d-x中创建新工程
- 企业网络营销中要注意的误区
- css3实现反转flip效果
- [Share] 冰点还原 Persi0.sys
- php中变量传递的几种办法
- Spring MVC一个简单的实例
- 手机数据丢失找回办法
- SQL Server中系统数据库介绍
- Android监听手机sdcard状态