I decided that it would be best in the long run if I tried out Cocos2d-X V3 and try and get PooperPig into C++
So, downloading Cocos2d-X wasn’t hard – just head to the cocos2d download page; , download the zip, unzip it, and put it somewhere ‘sensible’ -
Now I wanted to create my first project – and there’s a dead easy way…
Open up Terminal (this is for the Mac – for other platforms, you need some sort of command line & your milage may vary)
Change to the tools/project-creator directory …
(change the path to wherever you created the cocos folder, obviously!)
… and enter the command
.. and up pops a window.
(If your platform doesn’t pop up a window you may need to use command line parameters to achieve the same thing – the documentation on the cocos2d-x site is wrong at the time of writing – but entering
Will show you the correct options
-h, –help show this help message and exit
-n PROJECT_NAME, –name=PROJECT_NAME
Set a project name
-k PACKAGE_NAME, –package=PACKAGE_NAME
Set a package name for project
-l PROGRAMMING_NAME, –language=PROGRAMMING_NAME
Major programming language you want to use, should be
-p PROJECT_PATH, –path=PROJECT_PATH
Set generate project path for project
The options in the pop up screen are pretty obvious – just enter whatever you like – note that a folder with the name of your project will be created in the Project Path, so you don’t need to create that folder yourself.
After a bit of whirling, a few seconds later your project is created.
The screen shot shows the folders created – with the proj.ios_mac expanded. Opening the xcodeproj file brings up XCode (or AppCode if you use it) and you’re away!
I haven’t looked at the windows, linux or android projects yet – first I need to play around with it and get my C++11 skillz dusted off!