ccFPSImages.c has a PNG File stored as an array. How was it done ? What tool was used to convert the PNG file into the array, and how was an “Image” object created from it ?
It seems that when one does image->initWithImageData, and pass in the data and data length, “Image” should automatically figure out the image type etc, but so far I have not been able to create the array in a way that Image can recognize it.
cocos2d-x complains to me that it cannot detect the image type.
If I use image->initWithRawData, then all my sprites look funny, because it seems that the way the PNG is loaded, the individual sprites in the sprite sheet don’t match the plist file describing it. I’m not sure that I’m creating the raw data correctly either.
Can someone who has done this successfully list their steps ? I cannot find any documentation or examples of someone who has done this successfully.