3/8/2024 0 Comments Coco instal the new for ios![]() ![]() You can run cocos new -help to see even more options as well as platformĪs you make changes to your code it is necessary to compile it. The command is formatted as: cocos new -p -l -d Įxamples: cocos new MyGame -p com.M圜ompany.MyGame -l cpp -d ~/M圜ompanyĬocos new MyGame -p com.M圜ompany.MyGame -l lua -d ~/M圜ompanyĬocos new MyGame -p com.M圜ompany.MyGame -l js -d ~/M圜ompany ![]() To create a new project you use the cocos new command. Specify the full path to \tools\cocos2d-console\bin. On macOS run source ~/.bash_profile after updating your PATH or If you see anything else you need to either add the location to your PATH. If you see output like 1.2 you are all set. It is necessary for cocos to be in your path or to specify the complete path ![]() Example: export LC_ALL=en_US.UTF-8Īfter adding these lines, it is necessary to run source ~/.bash_profile or On macOS, it is also a good idea to add a few lines to your ~/.bash_profile to ensure your character encoding is set to UTF-8. Doing so ensures that you can run Cocos2d-x and its related tools. It is a good idea to run /setup.py to properly setup your It has many options, so let's go through them grouped by function. You don't need to use an IDE unless you want to. ![]() cocos works for all cocos2d-x supported platforms, which include: ios, android, mac, linux, and win32. It is a cross-platform tool that allows you to create new Cocos2d-x applications as well as run them and deploy them. Cocos command-line tool What is the cocos command-line tool?Ĭocos2d-x comes with a command-line tool called cocos. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |