Can you just help me start out.
Any tutorials and the softwares that will be required.
I’m very short on time as I wasted alot of time with airplay.
Thanks.
I have around 800 frames in my plist file.
This was one of the major issues due to which my sprite sheet was not loading using airplay.
Will there be the same problem when using the android ndk?
Is cocos2dx stable with android ndk ? Can you send me the link of any games created using this.
Thanks.
Is there any limit on the number of frames that can be in a sprite sheet.
Because the sprite sheet I was using for iphone which had around 8000 frames in it and when i loaded it using cocos2dx and airplay the application crashed. There was nothing else happening in the application. I was only trying to load this one sprite sheet and was getting memory crashes.
So that is my main concern.
I’ve managed to successfully port Chirp Chirp from cocos2d-iphone to cocos2d-x. I also had problems with anything to do with plist files. I wound up writing my own implementation for reading them, using tinyxml instead of libxml. Most of the crashes seemed to be happening inside libxml.
Are you able to load you 8000-frame sheet using the win32 version of cocos2d-x? If so, i’d imagine the engine can in theory handle it. If you’re getting android-only memory crashes, maybe you’re just using too much memory for your device?
Hey Isaac,
I didn’t try it for windows. The 8000 frame sheet loads up easily on normal cocos2d in objC.
It kinda crashed on android. It got stuck or something while loading.
Can you email me or attach your implementation for reading them. It will be highly appreciated. Thanks
I tried loading the sprite sheet using cocos2d and android sdk in java. I got a memory error. Actually someone tried it for me. The error was something like insufficient memory and the app crashed.
So that ill assume android is not capable of handling so many frames.
Well theoretically it isn’t a very good practice that I have so many frames in a single sprite sheet but if I can get this to work then my life will be soo easy.
Hey Isaac,
There is some issue with the parsing being used.
I tried to load the plist through airplay(marmalade) and got the same issue with loading it. The issue is not only on android but also iOS(if the native obj c parser is not used)
Can you help me out with the tinyXml implementation.
Thanks.
It just contains some defines that convert the NS* classes to CC* classes, for help with porting. Just replace references from things like NSObject to CCObject and you should be able to remove the #include for that file and get it to compile. But I’d recommend just looking through the code that uses the TiXml* classes to see how they work, and integrate it into your own solution.