//创建工程
MyGame
: name of your project-p com.MyCompany.MyGame
: package name for android-l cpp
: programming language used for the project, valid value is cpp
and lua
-d ~/MyCompany
: directory to hold your projectFolder structure of the generated project is as following:
(Note: The directory may be different when the project type is lua.)
-s
: directory of the new project. This could be an absolute path or a relative path.-p
: which platform to run on. Options are ios
,android
,win32
,mac
and linux
.(Note: You are a tmux user, you should add reattach-to-user-namespace
before the command cocos
. For more information, please refer to this link for more information.)
You can run cocos run --help
for more detail information.
联系客服