Creating a project
The first order of business will be creating a project file for SpaceCraze. If you have worked with Cocos2d-x before, you know that earlier we had to use separate scripts and batch files to create projects for the various platforms supported by the engine. It was a cumbersome task at that. So, the brilliant guys from the Cocos2d-x community have come up with a unified solution that will create all your required project files in one shot. They call it, quite simply, the project-creator tool.
You can find project-creator inside the tools
folder of Cocos2d-x. In the project-creator
folder, you will find a Python executable by the name of create_project.py
. This is the executable that we will use to create a cross-platform Cocos2d-x project. As a prerequisite, you will need Python installed on your machine before running create_project.py
. The script has instructions on how it should be used but I will go over it just this once.
To create a cross-platform Cocos2d-x project...