Cocos2d-x¶
- Cocos2d-x is an open-source mobile 2D game framework, released under MIT License. It is a C++ version of cocos2d-iphone project. Our focus for cocos2d-x development is around making cocos2d cross platforms. On top of the framework provided by cocos2d-x, mobile games can be written in C++, Lua or JavaScript, using API that is COMPLETELY COMPATIBLE with that of cocos2d-iphone. Cocos2d-x project can easily be built and run on iOS, Android, Samsung Bada, BlackBerry Qnx, Marmalde etc. Cocos2d-x also supports Windows and Linux, therefore we can debug source code easily and write editors on desktop operating systems. "X" means CROSS, The goal of this open-source project is to allow its users to create cross-platform code.
Featured Documents¶
The following are a list of tutorials that discuss the basics of using cocos2d-x on your platform. They assume some prior knowledge about creating apps on your selected platform, and do not contain a lot of details unrelated to cocos2d-x. If you don't know anything about creating apps on your platform, you can still try reading through the tutorials, but it is highly encouraged that you learn about programming on your platform first. Finally, if you wish to see all the wikipages, simply click the tag cloud or "Index by title" in the sidebar.
- Beginners Hands-on
- Paralaxer: A Cocos2d-X Game Source Project for iPhone, Android, Mac & Windows (by Nat Weiss, iPhoneGameKit.com)
- Cocos2d-x for iOS and Android: Getting Started (by Jean-Yves Mengant, RayWenderlich.com)
- Cocos2d-x for iOS and Android: Space Game
- HowTos
- Installation & First Run
- Platforms supported by cocos2d-x
- iOS
- Android
- How to build and run HelloWorld on Android NDK r5 and above
- How to build and run HelloWorld on Android(gles20 branch)
- How to create android project with script
- Build HelloWorld for android x86 platform
- Build project with ndk-r7
- How to use jni
- Developing with cocos2d-x for android on linux by Marcio Andrey Oliveira
- development in Qt Creator for Android
- Bada
- win32
- Linux
- BlackBerry Tablet OS
- Multi-platform
- cocos2d-x (iphone-android)/IDE installation and setup under mac os (by Super SuRacccon)
- How to create an iPhone and Android Cocos2d-x hybrid project (by clwoo)
- Features
- Graphic
- How does CCLabelTTF support line breaks and wrapping
- [deprecated]How does cocos2d-x support multi-resolution
- About the textures' maxsize in cocos2d-x
- Editors for cocos2d-x Texture,Tilemap,Particle,Action,Level etc
- Max size of textures in cocos2d-x depends on each platform
- How to debug games for ipad3 on low-resolution PC
- Multi resolution support
- Audio
- Network
- File I/O
- Interaction
- Thread
- Programming Language
- Lua
- New Lua Engine Documents
- Some of my experiences for cocos2d-x + lua (by DragonCheng)
- Tips and Attentions
- About device orientation
- Attentions on Android 4.0
- Attentions on Bada Wave M
- Build HelloWorld for android x86 platform
- Build project with ndk-r7
- Use OpenSL ES to play effect on Android
- Something about running on Android 3.0
- The Opengl ES versions of different devices
- Be ware when using CocosDenshion on BB QNX platform
- Mechanism of loading resources
- Use customer ttf font in iOS
- Graphic
- Tutorial: How to make a cocos2d-x simple game
- Chapter 1 - How to Create a New cocos2d-x project on multi-platforms
- Chapter 2 - How to Add a sprite
- Chapter 3 - How to Move a sprite
- Chapter 4 - How to Fire some Bullets
- Chapter 5 - How to Detect the Collisions
- Chapter 6 - How to Play Music and Sound Effect
- Chapter 7 - Some Icing on the Cake
- Receipts for improving your game
- Books
- How to Make a Platformer Game with Cocos2d-X (by Nat Weiss, iPhoneGameKit.com)
- Upgrade Guide
- Performance
DOWNLOAD¶
- Stable Version (Recommend)
- Github Repository
- Sample Games from community
- Cocos2dxSimpleGame, it's translated from RayWenderlich's Cocos2dSimpleGame, a good tutorial for beginners.
- share some source during my study in cocos2d-x, based on cocos2d-0.99.4-x-0.7.1, win32, by @chris
- cocos2d-win32 installation & Essential source code translated from <Learn iPhone & iPad Cocos2d Game Development>, based on cocos2d-0.99.4-x-0.7.1, win32, by @supersu
- cocos2d-win32 Working port to cocos2d-x v2.0 of tiled map tutorial series: Enemies and Combat: How to Create a Tile Based Game with Cocos2D Part 3, (cocos2d-2.0-rc0a-x-2.0 @ May 31 2012, win32), by @Deepscorn, original tutorial here: http://geekanddad.wordpress.com/2010/06/22/enemies-and-combat-how-to-make-a-tile-based-game-with-cocos2d-part-3/
Wiki Catalog¶
- Features
- Optimizations
- Scripting and Translating between Programming Languages
- Setting up Development Environments
- Android Environment Setup
- Bada Environment Setup
- BlackBerry Environment setup
- How to create a multi-platform project in one command line
- IOS Environment Setup
- Linux Environment Setup
- Mac OS X Environment Setup
- Native Client Environment Setup
- Windows 7 Environment Setup
- Windows 8 Metro Environment Setup
- Windows Phone 8 Environment Setup
- Step by Step Cocos2dxSimpleGame Series
- Chapter 1 - How to Create a New cocos2d-x project on multi-platforms
- Chapter 2 - How to Add a sprite
- Chapter 3 - How to Move a sprite
- Chapter 4 - How to Fire some Bullets
- Chapter 5 - How to Detect the Collisions
- Chapter 6 - How to Play Music and Sound Effect
- Chapter 7 - Some Icing on the Cake
- External Tutorials
- Tips and Tricks
- Tools and Editors
- Upgrade Guides
- Video Clips