ผลต่างระหว่างรุ่นของ "01219245/cocos2d-js/installation/3.2"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
(หน้าที่ถูกสร้างด้วย ': ''This is part of 01219245.'' [http://cocos2d-x.org/products#cocos2dx-js Cocos2d-JS] comes with a console tool to create new pro...')
 
แถว 5: แถว 5:
 
== Requirements ==
 
== Requirements ==
 
* Python
 
* Python
 +
 +
== Checking the installation ==
 +
 +
=== Cocos command line ===
 +
 +
Try calling <tt>cocos</tt> from the command line.  You should see:
 +
 +
<pre>
 +
/xxxx/cocos.py 1.5 - cocos console: A command line tool for cocos2d-x
 +
 +
Available commands:
 +
run          Compiles & deploy project and then runs it on the target
 +
luacompile    minifies and/or compiles lua files
 +
deploy        Deploy a project to the target
 +
compile      Compiles the current project to binary
 +
new          Creates a new project
 +
jscompile    minifies and/or compiles js files
 +
 +
Available arguments:
 +
-h, --help Show this help information
 +
-v, --version Show the version of this command tool
 +
 +
Example:
 +
/home/jittat/prog/cocos-js/cocos2d-js-v3.2/tools/cocos2d-console/bin/cocos.py new --help
 +
/home/jittat/prog/cocos-js/cocos2d-js-v3.2/tools/cocos2d-console/bin/cocos.py run --help
 +
</pre>

รุ่นแก้ไขเมื่อ 22:54, 27 มกราคม 2558

This is part of 01219245.

Cocos2d-JS comes with a console tool to create new projects and run as a web server for your game.

Requirements

  • Python

Checking the installation

Cocos command line

Try calling cocos from the command line. You should see:

/xxxx/cocos.py 1.5 - cocos console: A command line tool for cocos2d-x

Available commands:
	run           Compiles & deploy project and then runs it on the target
	luacompile    minifies and/or compiles lua files
	deploy        Deploy a project to the target
	compile       Compiles the current project to binary
	new           Creates a new project
	jscompile     minifies and/or compiles js files

Available arguments:
	-h, --help	Show this help information
	-v, --version	Show the version of this command tool

Example:
	/home/jittat/prog/cocos-js/cocos2d-js-v3.2/tools/cocos2d-console/bin/cocos.py new --help
	/home/jittat/prog/cocos-js/cocos2d-js-v3.2/tools/cocos2d-console/bin/cocos.py run --help