Getting started with Cocos was not very easy to be honest, it took me several hours to figure out which way to go. They got documentation on their website but it was not very helpful.
Tools to install for developing Cocos 2D C++ games on Windows
- Cocos Studio - Download
- Cocos Framework - Download
- Python - Download
- Visual Studio 2012 - Download
- Windows Phone 8 SDK - Download
- Java Development Kit (JDK), for Android version of your game - Download
- Android SDK, or Android version of your game- Download
- Android Native Development Kit (NDK), for Android version of your game - Download
I compiled this list after spending some time and I believe it is going to be helpful for people.
TipMost of the stuff can be downloaded after installing Cocos Studio on your system through the Cocos Store tab shown below. I recommend downloading Cocos Studio first.
Are you struggling with Cocos 2D-x game engine, let's learn together!!!
Feel free to get in touch with me through the "Contact Me" form on left side, you may comment the blog post as well.
What is Cocos Studio then?It is not the place you will write your code in. Instead, it is a place where you create scene files which are then used by a programmer.
Your project will have various folders containing projects for Win32, Android, and Windows Phone as well. You will open appropriate project folder and modify files in there.
Why Python?Not everybody loves PowerShell, open source community has got a much older and well tested alternative i.e. Python programming language. It is used to perform various tasks like creating projects etc. You will need to install it as well, no way around it ma techie.
Where do you write the Cocos2D-X game code?On a Windows PC, the C++ game code is written in Visual Studio 2012. On a Machintosh, XCode is used to write and edit code. Same code can be reused as it is to generate an Android and iOS version of your game. You will need to provide graphics for major size changes, but don't worry about that for now.
Lua scripting language is also supported and it can be used to create Cocos2D-X games.
There is a good news for Apple iOS developers, they can directly debug their game code from their device. The reason is objective C is a child of C and it supports code written in C++.
On the contrary Android uses a virtual machine to run code, and C++ code gets converted into suitable byte code and back to assembly before hitting the processor.