Cocos2d-x v2.x - Create C++, lua and JavaScript project
[windows]
1. pre-require setup
2. download cocos2dx
- recommend v2.2.3, you can find previous version you want
3. extract zip file
- recommend extract to your drive c as "C:\cocos2d-x-2.2.3"
4. copy cocos2dx generator path
- look inside your cocos2dx folder copy path like this "C:\cocos2d-x-2.2.3\tools\project-creator"
5. open command line
- go to start
- in search field type "cmd", you will see "cmd.exe" just press Enter
- type cd and press Spacebar after that paste cocos2dx path on cmd, like this
C:\Users\yourMachineName>cd C:\cocos2d-x-2.2.3\tools\project-creator
- press Enter
6. create new project
- press Enter
6. create new project
- see as below type form
C:\cocos2d-x-2.2.3\tools\project-creator>create_project.py -project PROJECT_NAME -package PACKAGE_NAME -language PROGRAMING_LANGUAGE
- my sample type as below, you should apply to anything you want
C:\cocos2d-x-2.2.3\tools\project-creator>create_project.py -project HelloGame -package com.newStudio.helloGame -language c++
hint:
PROJECT_NAME is the name you want
PACKAGE_NAME is your package name, it's should be like this com.yourCompanyName.ProjectName
PROGRAMING_LANGUAGE is c++, lua or javascript
- press Enter and wait.
- your project will create done inside cocos2dx folder, like this
C:\cocos2d-x-2.2.3\projects\HelloGame
[mac]
- it's similar to windows just adapt as your machine path, i'll edit this section if i have a chance to do on mac.
too easy and short step, right?
Comments
Post a Comment