Note that there are some explanatory texts on larger screens.

plurals
  1. POThe Completest Cocos2d-x Tutorial & Guide List
    text
    copied!<p>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 <a href="https://stackoverflow.com/questions/9979795/where-can-i-find-a-good-tutorial-to-start-programming-using-cocos2d-x">Started</a>, I had to look a lot in many sites using my friend Google. Hope this helps people start now. <strong>All in c++</strong>.</p> <p><strong>Beginners</strong></p> <ul> <li>Official wiki <a href="http://www.cocos2d-x.org/projects/cocos2d-x/wiki" rel="nofollow noreferrer">links</a></li> <li>How to start in multi-platform <a href="http://www.raywenderlich.com/11283/cocos2d-x-for-ios-and-android-getting-started" rel="nofollow noreferrer">HERE</a> The best one. Amazing, XCODE (MAC) and ECLIPSE (LINUX) tutorial.</li> <li>A simple guide to <a href="http://developer.bada.com/library/BalloonRide" rel="nofollow noreferrer">Start</a></li> <li>Another multi-platform <a href="http://gameit.ro/2012/01/creating-an-iphone-and-android-cocos2d-x-hybrid-project-updated/" rel="nofollow noreferrer">Guide</a></li> <li>Awesome guide to start programming on <a href="http://blog.plicatibu.com/developing-with-cocos2d-x-for-android-on-linux/" rel="nofollow noreferrer">Eclipse + Android</a> and <a href="http://blog.plicatibu.com/how-to-debug-cocos2d-x-and-java-code-using-eclipse/" rel="nofollow noreferrer">DEBUG</a>, thanks to <a href="https://stackoverflow.com/users/88211/marcio-andrey-oliveira">Marcio Andrey</a></li> <li>Another <a href="http://jpsarda.tumblr.com/post/26000816688/integrate-cocos2d-x-c-into-an-android-application" rel="nofollow noreferrer">way</a> to integrate cocos2d-x on Android</li> <li>Social Example, Facebook + email + Twitter on iOS and Android <a href="http://www.cocos2d-x.org/boards/6/topics/12492" rel="nofollow noreferrer">HERE</a></li> </ul> <p><strong>Medium</strong></p> <ul> <li>Scrolling scenes. Using CCParallaxNode. <a href="http://www.raywenderlich.com/11338/cocos2d-x-for-ios-and-android-space-game" rel="nofollow noreferrer">Space game example</a></li> <li>InfiniteParadax Class <a href="https://github.com/jasonmarziani/CCParallaxScrollNode" rel="nofollow noreferrer">Here</a>, to repeat same backgrounds all time.</li> <li><a href="http://www.cocos2d-x.org/boards/6/topics/9803" rel="nofollow noreferrer">Slider code</a> <a href="https://www.youtube.com/watch?v=hvQOnk4RgmM" rel="nofollow noreferrer">HERE</a> the video.</li> <li>Split screen using 2 layers <a href="http://blog.bigbunkerstudio.com/?p=154" rel="nofollow noreferrer">Here</a></li> <li>Sharped Label TTF, <a href="https://rombosblog.wordpress.com/2012/04/11/prevent-blurry-fonts-when-using-cclabelttf/" rel="nofollow noreferrer">Better labels</a></li> </ul> <p><strong>ADVANCED</strong></p> <ul> <li>Integrating OpenFeint with cocos2d-x. I only found <a href="http://blog.molioapp.com/2011/11/openfeint-and-admob-integrated-with.html" rel="nofollow noreferrer">This example</a>, <a href="http://www.cocos2d-x.org/boards/10/topics/9191" rel="nofollow noreferrer">Here</a> more details.</li> <li>Archievement on GameCenter. <a href="http://www.cocos2d-x.org/boards/6/topics/6891" rel="nofollow noreferrer">Here</a></li> </ul> <p><strong>Extensions</strong></p> <ul> <li>I have not tested all, but work fine <a href="https://github.com/cocos2d/cocos2d-x-extensions" rel="nofollow noreferrer">walzer's Extensions</a></li> <li><a href="https://github.com/MarkusPfundstein/Cocos2DX-Extensions" rel="nofollow noreferrer">MarkusPfundstein</a>'s extensions </li> <li>DualFace <a href="https://github.com/dualface/cocos2d-x-extensions" rel="nofollow noreferrer">extensions</a>, actually in development</li> </ul> <p><strong>Code Examples</strong></p> <ul> <li><em>Clawoo examples</em></li> <li><a href="https://github.com/clawoo/SimpleGameCocos2D-x" rel="nofollow noreferrer">Simple Game 1</a></li> <li><a href="https://github.com/clawoo/SimpleGamePart2Cocos2D-x" rel="nofollow noreferrer">Simple Game 1 - part 2</a></li> <li><a href="https://github.com/clawoo/SimpleGamePart3Cocos2D-x" rel="nofollow noreferrer">Simple Game 1 - part 3</a></li> <li><a href="https://github.com/clawoo/BreakoutCocos2D-x" rel="nofollow noreferrer">BreakOut</a></li> <li><a href="https://github.com/clawoo/PongCocos2D-x" rel="nofollow noreferrer">Pong</a></li> <li><a href="https://github.com/clawoo/CuteAPultCocos2D-x" rel="nofollow noreferrer">Cute a pult</a></li> <li><a href="https://github.com/clawoo/TileBasedGameCocos2D-x" rel="nofollow noreferrer">TileBased game</a></li> <li><a href="https://github.com/clawoo/AsteroidsCocos2D-x" rel="nofollow noreferrer">Asteroids</a></li> <li><em>Bada.com</em></li> <li><a href="http://developer.bada.com/library/BalloonRide" rel="nofollow noreferrer">Ballon Ride</a></li> <li><em>Demo and links collection</em></li> <li><a href="http://www.supersuraccoon-cocos2d.com/2011/09/17/sticky-demo-resource-list-keep-updating/" rel="nofollow noreferrer">supersuraccoon-cocos2d demos (Not all C++)</a></li> <li><a href="http://www.supersuraccoon-cocos2d.com/2012/02/11/sticky-ios-cocos2d-develop-recommended-blog-list-keep-updating/" rel="nofollow noreferrer">supersuraccoon-cocos2d links collection</a></li> <li>Another code example: <a href="https://github.com/diwu/Tiny-Wings-Remake-on-Android" rel="nofollow noreferrer">Tiny Wings Remake on Android using Cocos2d-X</a></li> </ul> <p><strong>TIPS</strong></p> <ul> <li>Audio format <a href="http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Audio_formats_supported_by_CocosDenshion_on_different_platforms" rel="nofollow noreferrer">Supported</a></li> <li><p>If you use Linux, please, don't use cocos2d-android or cocos2d-android-1, <strong>is decreated</strong>. Try to use cocos2d-x</p></li> <li><p>If you use Linux, and don't know how to use native code, <a href="http://developer.android.com/sdk/ndk/index.html" rel="nofollow noreferrer">Take a look in development</a></p></li> <li><p>CCLOG("String"); Don't work on Eclipse log cat, but CCLog do it!</p></li> <li><p>Max textures size/resolution <a href="http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Max_size_of_textures_in_cocos2d-x_depends_on_each_platform" rel="nofollow noreferrer">Here</a></p></li> <li><p>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. <a href="http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How_does_cocos2d-x_support_multi-resolution" rel="nofollow noreferrer">Multi-resolution Wiki</a>. In Example:</p></li> </ul> <pre> #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) this->setObjectScale(1); #endif // CC_PLATFORM_IOS </pre> <ul> <li>Your first example must be the official on the <a href="http://www.cocos2d-x.org/projects/cocos2d-x/wiki" rel="nofollow noreferrer">WIKI</a></li> </ul> <p>** <a href="http://www.cocos2d-x.org/" rel="nofollow noreferrer">OFFICIAL PAGE COCOS2D-X</a> ** </p> <p>What will need this question?</p> <ul> <li>XML Tutorial, i have nothing in this area. Actually, i'm working in some code. I will do a Tutorial. The library can be use is <a href="http://www.xmlsoft.org/" rel="nofollow noreferrer">libxml2</a> </li> <li>Creating menus example</li> <li>Slider menu example</li> <li>Gestures class don´t implemented yet</li> </ul> <p>If you have problems, use tag Cocos2d-x in Stackoverflow, and I will try to help you.</p> <p>I have already read the <a href="https://stackoverflow.com/faq">FAQ</a> 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.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload