Click here to Skip to main content
12,893,086 members (59,707 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


Posted 16 Feb 2014

Cocos2d-X V3.0 Beta – Installation

, 16 Feb 2014 CPOL
Rate this:
Please Sign up or sign in to vote.
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, … Continue reading →

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 …

cd /Users/PooperPig/Documents/cocos2d-x-3.0beta2/tools/project-creator

(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

./ -help

Will show you the correct options

Usage: -n <PROJECT_NAME> -k <PACKAGE_NAME> -l <cpp|lua|javascript> -p <PROJECT_PATH> Sample: -n MyGame -k com.MyCompany.AwesomeGame -l javascript -p c:/mycompany

-h, –help show this help message and exit
Set a project name
Set a package name for project
Major programming language you want to use, should be
[cpp | lua | javascript]
Set generate project path for project

Screen Shot

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.

Project 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!


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer (Senior) Devo
Australia Australia
Software developer par excellence,sometime artist, teacher, musician, husband, father and half-life 2 player (in no particular order either of preference or ability)
Started programming aged about 16 on a Commodore Pet.
Self-taught 6500 assembler - wrote Missile Command on the Pet (impressive, if I say so myself, on a text-only screen!)
Progressed to BBC Micro - wrote a number of prize-winning programs - including the best graphics application in one line of basic (it drew 6 multicoloured spheres viewed in perspective)
Trained with the MET Police as a COBOL programmer
Wrote platform game PooperPig which was top of the Ceefax Charts for a while in the UK
Did a number of software dev roles in COBOL
Progressed to Atari ST - learned 68000 assembler & write masked sprite engine.
Worked at Atari ST User magazine as Technical Editor - and was editor of Atari ST World for a while.
Moved on to IBM Mid range for work - working as team leader then project manager
Emigrated to Aus.
Learned RPG programming on the job (by having frequent coffee breaks with the wife!!)
Moved around a few RPG sites
Wrote for PC User magazine - was Shareware Magazine editor for a while.
Organised the first large-scale usage of the Internet in Australia through PC User magazine.
Moved from RPG to Delphi 1
Developed large applications in Delphi before moving on to VB .Net and C#
Became I.T. Manager - realised how boring paper pushing can be
And now I pretty much do .Net development in the daytime, while redeveloping PooperPig for the mobile market at night.

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170424.1 | Last Updated 17 Feb 2014
Article Copyright 2014 by _Maxxx_
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid