A new book that will help you develop cross platform mobile applications was recently released by PACKT Publishing. The book provides all the information you need to get started in developing for android, iPhone, blackberry, and many more platforms.
The most recent release of cocos2d-x has added support for Marmalade so if you plan on writing 2D games for iPhone, Android, Blackberry or any other smartphone (or even LG TV’s) then you should get this book and download the latest cocos2d-x and get started on developing your app.
Coding a complicated physics game without the right tools is tedious and slow. Fortunately there is a tool that makes this work easy and fast so you can concentrate on creating a great game.
LevelHelper along with SpriteHelper are excellent tools for creating sprite sheets and generating usable physics code. The author of this tool, Vladu Bogdan, is constantly improving the tools allowing you to easily create levels for your games complete with physics working with your sprite sheets taken from SpriteHelper. The tool allows instant testing of the physics using the built in Scene Tester.
The software only works for the MAC and it is well worth purchasing a MAC just for this tool as it will save weeks and months of work for your development project. The author supports cocos2d-x which can be run on several platforms.
The software can be purchased in the Apple App store, more information can be found at http://www.levelhelper.org/
Ray Wenderlich has excellent tutorials for cocos2d and Vladu has contributed an excellent tutorial series using LevelHelper and SpriteHelper.
The final code for this tutorial series has been converted to cocos2d-x and will be posted soon. Using cocos2d-x and Marmalade SDK it was an easy task to get the finished game onto the Kindle Fire.
Cocos2d to Cocos2d-x
The difference between the Objective-C and C++ code can be viewed here and can be used as an aid to converting between the languages for cocos2d to cocos2d-x conversions.
For a developer, being able to develop one code base for all platforms is the best way to capture the largest market for their application.
Two SDK’s will let the developer accomplish this. The first one is Cocos2d-x, take a look at their website http://www.cocos2d-x.org. This is a multi-platform, light weight and developer friendly C++ 2D mobile game engine, open source and released under MIT License. It is spawned off of the famous “cocos2d-iphone” project and will be kept in sync with it.
The platforms supported are Win32, Android, iPhone, Wophone, QNX, Bada and Marmalade SDK.
What is great about cocos2d is that there are many tutorials and examples. The only downside now is that most of them are in Objective-C for the iPhone.
Some of these tutorials can be found at the following links:
From the original cocos2d iphone project:
Ray Wenderlich has some very detailed tutorials:
There are also many books:
In the next few installments, this blog will post several of these tutorials and examples rewritten in C++ to help others get started with cocos2d-x.