cocos2dx 命令解释
2015-07-11 10:25
330 查看
A command line tool that lets you create, run, publish, debug, etc… your game. It is the swiss-army knife for cocos2d.
This command line tool is in its early stages.
There are at least 2 groups of requirement currently. One is for cocos game project, such as
another is for updating cocos framework, such as
project
new
run
compile
list // open recent projects
deploy
clean
device
engine
version
udpate
help
assets converter // convert the textures, audios into best file format for target platform. We need a resource manager in framework to do this.
OPTIONS
Must be. The name of your project, wihtout space.
Must be. Select the programming language for the new game. It can be , or
Optional. Set to "com.mycompany.mygame" by default
Optional. By default it will create the new project in your current path
TBD. We will offer more templates like shooter game, super mardio game, isometric game tempaltes
This command will call compile and deplot
OPTIONS
Must be. Targets can be , , , etc.
Optional Mode can be or . By default it's debug mode.
Compiles the current project to binrary
Optional. if not it specified, use current dir
Must be. Should be [android|ios|linux|mac|win32].
Optional. Mode can be or . By default it's debug mode. In release mode, this command will compile lua or javascript into bytecode. Use
default.
Optional. How many threads to do the compilation
Architecture can be
The android sdk platform number, valid android-platform are:[10|11|12|13|14|15|16|17|18|19]
Installs the package to a target device.
Targets can be , ,
Clean the compiled sources and assets on all platforms. By default, it cleans only your game, but reserve the binary output for framework. If you inputs , then it will clean both your game and the cocos2d-x framework
If you have a nice design please do not hesitate to write your idea here.
This command line tool is in its early stages.
Commands Required
There are at least 2 groups of requirement currently. One is for cocos game project, such as new,
compile,
run,
another is for updating cocos framework, such as
version,
install,
update.
project
new
run
compile
list // open recent projects
deploy
clean
device
engine
version
udpate
help
assets converter // convert the textures, audios into best file format for target platform. We need a resource manager in framework to do this.
cocos project new
cocos project new <project-name> [-l <cpp|lua|js>] [-p <package name>] [-d <directory>] [-t <template>] [-help]
OPTIONS
<project-name>
Must be. The name of your project, wihtout space.
-l <cpp|lua|js>
Must be. Select the programming language for the new game. It can be , or
-p <package-name>
Optional. Set to "com.mycompany.mygame" by default
-d \<directory>
Optional. By default it will create the new project in your current path
-t \<template>
TBD. We will offer more templates like shooter game, super mardio game, isometric game tempaltes
cocos project run
cocos project run <target> [-m <mode>]
This command will call compile and deplot
OPTIONS
<target>
Must be. Targets can be , , , etc.
-m <debug|release>
Optional Mode can be or . By default it's debug mode.
cocos project compile
cocos compile -p <platform> [-s <project_dir][-m <mode>] [-j <number>] [-a <architecture>] [--ap <android_platform>]
Compiles the current project to binrary
-s the project base directory
Optional. if not it specified, use current dir
-p <platfrom>
Must be. Should be [android|ios|linux|mac|win32].
-m <debug|release>
Optional. Mode can be or . By default it's debug mode. In release mode, this command will compile lua or javascript into bytecode. Use
debugby
default.
-j <number>
Optional. How many threads to do the compilation
-a <architeture>
Architecture can be
<arm>,
<armeabi>,
<arm64>,
<x86>or
<all>
--ap <android_platform>
The android sdk platform number, valid android-platform are:[10|11|12|13|14|15|16|17|18|19]
cocos project deploy
cocos project deploy -t <target>
Installs the package to a target device.
-t <target>
Targets can be , ,
cocos project clean
cocos clean <all>
Clean the compiled sources and assets on all platforms. By default, it cleans only your game, but reserve the binary output for framework. If you inputs , then it will clean both your game and the cocos2d-x framework
If you have a nice design please do not hesitate to write your idea here.
相关文章推荐
- VAssistX使用 分类: cocos2d其他 2015-07-11 09:51 14人阅读 评论(0) 收藏
- (2)cocos2dx在windows环境下中文显示乱码
- Cocos2d使用TexturePacker工具打包生成plist和pvr.ccz文件方法总结
- Cocos2d使用TexturePacker工具打包生成plist和pvr.ccz文件方法总结 分类: cocos2d其他 2015-07-11 09:06 13人阅读 评论(0) 收藏
- 认识TexturePacker的界面 分类: cocos2d其他 2015-07-11 08:56 9人阅读 评论(0) 收藏
- 大海教你学手游2015CocosLua第一季_01环境搭建与场景封装
- 使用Cocos2d-x-3.6创建Lua项目Cocos Code IDE V1.2可调试
- 【Cocos2d-x 游戏开发】 2 --- Button、CCMoveBy
- 【Cocos2d-x】控制音量的滚动条
- [cocos2dx]Mac操作系统下的cocos2dx-lua环境配置
- COCOS2D-X 停止手打所有cpp文件到android.mk
- cocos2dx3.2与2.3的区别和3.2中C++11新特性的应用
- Cocos2dx 3.6 CCLable enableShadow error.
- cocos2d-x box2d 世界刚体初始化流程
- 【独立开发者er Cocos2d-x实战 005】使用Cocos2dx Scale9Sprite使用
- cocos2dx 编写shader 遇到 溢出问题
- 滑块控件CCControlSlider
- cocos2d-x 3.0rc开发指南:Windows下Android环境搭建
- 使用Quick-Cocos2d-x开发植物大战僵尸02-地图编辑
- 使用Quick-Cocos2d-x开发植物大战僵尸01-项目总体介绍