How to create the project in cocos2dx 2.2.6?
Cococs2dx is use for gaming development.Its provide the cross platform for gaming development means we can create the game in mac os and android .But now we are seen here create project in
mac os.
Cococs2dx is use for gaming development.Its provide the cross platform for gaming development means we can create the game in mac os and android .But now we are seen here create project in
mac os.
For project create you need a Xcode editor and mac os and cocos2dx2.2.6 zip file.If you don’t have zip file then download from http://cdn.cocos2d-x.org/cocos2d-x-2.2.6.zip.
step1: Now open the terminal and extract the cocos2dx2.2.6 folder.
you find out the below terminal display.
step2:
Open cocos2dx2.2.6->tools
now drag and drop project-creator folder in terminal but before that don’t forget to write cd.
now for that see the below screen shot.
Open cocos2dx2.2.6->tools
now drag and drop project-creator folder in terminal but before that don’t forget to write cd.
now for that see the below screen shot.
step 3:Now again drag and drop the create_project.py file in terminal.Here don’t write the cd.After that you can find some line of code that see below image.
After press Enter
step 4 :Copy and paste the below line and in this line please edit below keyword
MyGame:here yore project name
-pacakge:You can give here any package name ,here i give com.emprovantion.dmeoproject
-language:here can write cpp/lua/javascript. i am using the cpp language.
./create_project.py -project MyGame -package com.MyCompany.AwesomeGame -language javascript
After editing above line:
./create_project.py -project demoproject -package com.emprovantion.demoproject -language cpp
step 5:
You get the keyword that have fun! means yore project is created successfully.
Now You can see or open your project on below path
Desktop ▸ cocos2d-x-2.2.6->project->proj.ios->demoproject
Inside that You can find out the demproject.xodeproj.
open the demoproject.xcodeproj in xcode editor.
Now yore final screen is: