Cocos2d game in android shows only black screen

I have experience with cocos2d + iphone and now I want to get some experience with cocos2d + android. So, I am following this good tutorial found here. for some reason I always get a black screen. I think this is the name of the activity. I'm new to Android OS, so I hardly understand how this works. Anyway, is there anyone who has experience using cocos2d with Android ever seen something like this? Is there something I am missing in my eclipse config?


source to share

3 answers

The best way to program in cocos2d is to use a real device, emulator is too slow (<10fps)

By the way:

1º First of all, start the Android emulator. Target: the same as the project, if it is a different target, cannot work (may remain black, sometimes happens) 2º Go to the "Configure" section and select the same target as the project and emulator. 3º Run the project (if the emulator is fully loaded) and wait. 4º Voilá.



Yes sir, I ran into this problem. Do this, create a new avd using android 4.0 and try to run this emulator. hope it works.



Go to the org.cocos2d.nodes package and there in the class find the SetProjection method and also find this state GLU.gluPerspective (gl, 60, size.width / size.height, 0.5f, 1500.0f); and after you've found that your theme should replace with this> === GLU.gluPerspective (gl, 60, size.width / size.height, 0.5f, 2000.0f);

And it will work fine



All Articles