HowTos¶
Here're frequently asked questions in the community, link below may re-direct to forum threads, or developers' blogs.
WARNING: the solutions below may be out of day since the cocos2d-x is always keeping update.
Multi-platform¶
- How to setup Cocos2d-x (by Laurence Muller)
- cocos2d-x (iphone-android)/IDE installation and setup under mac os (by Super SuRaccoon)
- How to create an iPhone and Android Cocos2d-x hybrid project (by Clawoo Teh)
- Memory deallocation in Cocos2d-x / About NSAutoreleasePool in cocos2d-x / When should I invoke object->release()
- How to save data in cocos2d-x game
- A very long story about my optimization of Cocos2d-x Android apps in size and performance (by Strawberry Milkshake)
- Standard Touch Delegate & Targeted Touch Delegate
- How to avoid lines between tiles after modify the scale of TileMap
- Some regex to help you converting objc code to cpp code (by hex lee)
- Creating and using Sprite Sheets in Cocos2D-X with Texture Packer (by Jesus Bosch)
- How to use the CCListView extension for Cocos2D-X (by Jesus Bosch)
- How to use CocosBuilder with Cocos2d-x. Simplest use case (by Xavier Arias)
- Relocate_VCProj-SLN Win32/Visual Studio: Relocating a cocos2dx project and solution. (by Pranav Tekchand)
Android¶
- How to add Vibration to android game, by Ray To
- How to support android Tab with 1024*600 resolution
- How to add chipmupnk into new project
- Developing with cocos2-x for android on linux, by Marcio Andrey Oliveira
- How to debug cocos2d-x and Java code using Eclipse, by Marcio Andrey Oliveira
iOS¶
- Playing a Video on iPhone/iPad/iPod under Cocos2D-X
- UIScrollView solution for cocos2d-x
- Implementing in-app purchases on iOS games based on Cocos2d-X – Part 1 (by Jesús Bosch)
- Implementing in-app purchases on iOS games based on Cocos2d-X – Part 2 (by Jesús Bosch)
- Make some cash with your Cocos2D-X iOS games with Inner-active ads integration (by Jesús Bosch)
- Adding Localytics in Cocos2d-x game for iOS (by Jesús Bosch)
- Internet communications on Cocos2D-X with libCurl (by Jesús Bosch)
- Objective-C to C++ callbacks (by Jesús Bosch)
- Using the native Facebook SDK on Cocos2D-X iOS projects (by Jesús Bosch)
Lua¶
Qt¶
Samples & Open Source Games¶
- TweeJump port updated for cocos2d-x 2.0.4, by Francis Styck
- How to use Box2D for just Collision Detection with Cocos2D-X, by Gav T
- How To Make a Catapult Shooting Game with Cocos2D-X and Box2D
- CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x, by leo
Extensions¶
- AdvanceSprite, by varadharaj. A Subclass of CCSprite to do easier sprite animation. Has advanced controls through methods for controlling FPS, frame range etc.
- AdvanceParticleQuadSystem, by varadharaj. A Subclass of CCParticle to do easier texture animation for particles. Has FPS control.
- UIScrollView solution, by leo
- HSJoystick, by Robert Ryu, control sphere object with simple joystick in box2d
- ExtendedSpriteBatchNode:, by Kevin Hawkins, allow a single CCSpriteBatchNode render all sprite nodes at once and maintain proper z-ordering.
- DebugDraw - draw lines, points easy, by YuLei Liao
- Using the CCListView extension (by Jesus Bosch)
Integration with Third Party SDK¶
- Integration with Flurry Analytics SDK, by Dmitry Matyukhi
- Using the native Facebook SDK on Cocos2d-x iOS projects, by Jesus Bosch