I'm developing a game using Cocos2d-x to Android and iPhone. At the beggining, I had a lot of problems to start using this library, so, in this question, I want to collect all basic, medium and expert tutorials because there are a lot of info questions doing the same mistakes. When I Started, I had to look a lot in many sites using my friend Google. Hope this helps people start now. All in c++.
Beginners
Medium
ADVANCED
Extensions
Code Examples
TIPS
If you use Linux, please, don't use cocos2d-android or cocos2d-android-1, is decreated. Try to use cocos2d-x
If you use Linux, and don't know how to use native code, Take a look in development
CCLOG("String"); Don't work on Eclipse log cat, but CCLog do it!
Max textures size/resolution Here
Iphone use RETINA to draw textures in HD, but don't are used on Android. My solution is use RETINA on iphone, and setscale compiling only in Android. Multi-resolution Wiki. In Example:
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) this->setObjectScale(1); #endif // CC_PLATFORM_IOS
** OFFICIAL PAGE COCOS2D-X **
What will need this question?
If you have problems, use tag Cocos2d-x in Stackoverflow, and I will try to help you.
I have already read the FAQ but 90 % of questions cocos2d/android related present the same problem, using obsolete libraries. I just want help people to start using cocos2d-x. All additional info will be Welcome.
Another code example: Tiny Wings Remake on Android using Cocos2d-X