Top "Cocos2d-x" questions

C++ cross-platform version of Cocos2D, an open-source mobile 2D game framework.

The Completest Cocos2d-x Tutorial & Guide List

I'm developing a game using Cocos2d-x to Android and iPhone. At the beggining, I had a lot of problems …

android ios cocos2d-x
Getting the dimensions of the soft keyboard

Is there a way to know the size of the keyboard that is shown in the screen? I am using …

android keyboard cocos2d-x
VS 2015 compiling cocos2d-x 3.3 error "fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration"

When I compile cocos2d-x (version 3.3) using visual studio 2015, an error occured, saying: fatal error C1189: #error: Macro definition of …

c++ cocos2d-x visual-studio-2015
Android NDK: WARNING: APP_PLATFORM android-9 is larger than android:minSdkVersion 8

I am getting the following warning when compiling my cocos2d-x project with cygwin. `/cygdrive/e/project/MyGame/proj.android ` /…

android android-ndk cygwin cocos2d-x
Error "Cast from pointer to smaller type 'int' loses information" in EAGLView.mm when update Xcode to 5.1 (5B130a)

Yesterday, I updated Xcode to the newest version (5.1 (5B130a)) to compatible with iOS 7.1. Then I build my project, I …

iphone xcode5 cocos2d-x ios7.1 cocos2d-x-2.x
How to set background color of layer in cocos2d-x?

I've been writing a game using cocos2d-x and ran into an issue with changing the background color. I found …

c++ cocos2d-iphone cocos2d-x cclayer
Run Callback On Main Thread

I have some code that interacts with the Android Facebook SDK, Asynchronously. Unfortunately this means when it returns it is …

android cocos2d-x
Cocos2d for iPhone vs. Cocos2d-x

I have worked some with Cocos2d for iPhone and find it delightful. I am starting another project, and have …

iphone cocos2d-iphone cocos2d-x
invalid use of 'this' outside of a non-static member function error?

I am using CCTouchTargetedDelegate with a Class subclassed by CCSprite. when defining delegate methods i am not being able to …

c++ ios cocos2d-x cocos2d-x-3.0
Why isn't an animation flipped horizontally when I call setFlipped(true)?

I have some sprites, where the player character is facing to the right. I can create an animation from those …

cocos2d-x cocos2d-x-3.0 cocos2d-x-3.x