Cocos2d-x v3.x - Create C++, lua and JavaScript project

Cocos2d-x v3.x - Create C++, lua and JavaScript project
[windows]

1. pre-require setup
see here: http://gamedevtodied.blogspot.com/2014/09/cocos2d-x-v2x-setup-environment.html

2. download cocos2dx v3
here: http://www.cocos2d-x.org/download

3. extract cocos2dx zip file as below
C:\cocos2d-x-3.0

4. open cmd.exe and type/paste as below then press Enter
C:\Users\yourMachineName>cd C:\cocos2d-x-3.0

5. call setup file as below then press Enter
C:\cocos2d-x-3.0>setup.py

6. terminal will show as below image, if your (1.) are correct



it's tell you about NDK_ROOT, ANDROID_SDK_ROOT and ANT_ROOT was found!

7. close cmd terminal and then re-open cmd again and do as (4.)
then type as below form for create new project
C:\cocos2d-x-3.0>cocos new ProjectName -p com.companyName.projectName -l language -d ./projectDirectory

For sample, my project detail as below, then press Enter
C:\cocos2d-x-3.0>cocos new HelloCocos -p com.myStudio.helloGame -l cpp -d ./projects

see result as below image


8. your project was created inside projects folder
C:\cocos2d-x-3.0\projects\HelloCocos

Now you can enjoy create new game.

Comments

  1. This is the first time i am reading your post and admire that you posted article which gives users lot of information regarding particular topic thanks for this share.
    cocos2d game development

    ReplyDelete
    Replies
    1. Thank you, i'm writing as i want to know from other blog but never. If it's can make sure general user can do it, i'll refine it more.

      Delete

Post a Comment