Welcome to Cocos2d-x¶
Cocos2d-x has been widely used by individuals and enthusiasts as well as big companies such as Zynga, Wooga, Gamevil, Glu, GREE, Konami, Square Enix, IGG, Disney Mobile etc. Up until September 2013, Cocos2d-x based games reached+1.5 billion downloads globally, many of them dominate the Top Grossing Charts of the AppStore and Google Play. Engineers from Chukong, Google, Microsoft, ARM, Intel, and BlackBerry are actively engaged in Cocos2d-x community.
Cocos2d-html5 is a game engine branched from Cocos2d-x. It aims at HTML5-ready browsers on desktop PCs, tablets and of course, mobile phones. To find out more about the Cocos2d family, please click About.
This manual is designed to help you learn how to use cocos2d-x and cocos2d-html5, from the very basic to the advanced techniques. It can be read from start to finish or used as a reference.
The manual is divided into different sections.
The first section, Getting Started. If this is your first time reading about cocos2d-x and cocos2d-html5, we suggest you start at this part.
The next section, Basic Concepts. It explains some basic concepts that you need to know when developing a cocos2D-X or cocos2D-HTML5 game.
The third section, Advanced. It addresses topics such as game memory management, memory optimization, performance optimization, Lua scripting, particles, lots of tips and tricks and much more.
The fourth section, Plugin-x. It helps you to integrate some 3rd party SDKs into your cross-platform games using C/C++.
With JSB, you can convert your awesome ideas into real games on multiple platforms, including iOS, Android, Windows, MacOS, etc. One code base and all done.
Check the FAQ section first if you encounter unexpected trouble in your developing process – whatever your problem is, you are more than often not alone.
If you didn’t find the answer there, try our Forums for further help at http://forum.cocos2d-x.org.
If you prefer official Support from our team, we are there for you.
If you come across any bugs, please let us know by posting them on Cocos2d-x’s Issues page at http://www.cocos2d-x.org/projects/cocos2d-x/issues.
At any time, when you feel inspired and want to contribute ideas, codes or anything else to the community, just click Contribution and rock with us!
The Cocos2D-X team
- Welcome to Cocos2d-x
- Supported Platforms and Programming Languages
- Architecture and Directory Structure
- Windows 7 Environment Setup
- Windows 8 Metro Environment Setup
- Windows Phone 8 Environment Setup
- Linux Environment Setup
- Mac OS X Environment Setup
- Android and NDK
- BlackBerry Environment Setup
- Native Client Environment Setup
- Tizen Environment Setup
- How to create a multi-platform project in one command line
- Director, Scene, Layer and Sprite
- Coordinate System
- Scheduler and Timer Callback
- Skeletal animation