I am developing a game using Cocos2d-x for Android and iPhone. In the beginning, I had a lot of problems to start using this library, so in this question I want to collect all the basic, secondary and experienced textbooks, because there are many informational questions that make the same mistakes. When I started , I had to search a lot on many sites using my friend Google. Hope this helps people get started now. Everything in C ++ .
Beginners
- Official wiki links
- How to start in a multi-platform HERE Best. Amazing tutorial XCODE (MAC) and ECLIPSE (LINUX).
- Simple Start Guide
- Another multi-platform guide
- An amazing guide to launch Eclipse + Android and DEBUG programming, thanks to Marcio Andrei
- Another way to integrate cocos2d-x on Android
- Social Example, Facebook + Email + Twitter on iOS and Android HERE
Medium
ADVANCED
Extensions
Code examples
ADVICE
- Audio format Supported
If you are using Linux, please do not use cocos2d-android or cocos2d-android-1 is reduced . Try using cocos2d-x
If you use Linux and don’t know how to use your own code, take a look at the development
CCLOG ("String"); Do not work with Eclipse log cat, but CCLog do it!
Maximum Texture Size / Resolution Here
Iphone uses RETINA to paint textures in HD, but is not used on Android. My solution is to use RETINA on iphone, and setscale is only for Android. Wiki with multiple permissions . In the example:
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
this-> setObjectScale (1);
#endif // CC_PLATFORM_IOS
- Your first example should be official on WIKI
** OFFICIAL COCOS2D-X PAGE **
What will this question need?
- XML tutorial, I have nothing in this area. In fact, I work in some code. I will do the study guide. Library can be used libxml2
- Menu creation example
- Slider example
- Gesture class not yet implemented
If you have problems, use the Cocos2d-x tag in Stackoverflow and I will try to help you.
I already read the FAQ , but 90% of the questions related to cocos2d / android present the same problem using outdated libraries. I just want to help people start using cocos2d-x. All additional information would be appreciated.
android ios cocos2d-x
vgonisanz May 22 '12 at 22:26 2012-05-22 22:26
source share