I have a .pvr sprite sheet that seats under a folder called “hd”.
The relative path for the sheet is “\$(APP_DIR)/Resources/hd/srpites.pvr.gz”.
I’m loading the sprites in the sheet like this:
Then I try to create sprites like this:
CCSpriteFrame *spriteFrame = CCSpriteFrameCache::sharedSpriteFrameCache()~~>spriteFrameByName;
CCSprite sprite = CCSprite::createWithSpriteFrame;
h3.It works flawlessly on iOS, but crashes on Android.*
h3. The funny thing is on Android if I move my sprite sheet to “\$(APP_DIR)/Resource/sprites.pvr.gz” it works fine also!This makes me think maybe CCFileUtils has some bug on Android which does not take the the resources dir into consideration for sprite sheets?
Or maybe I’m getting this wrong? Any thoughts?
Thanks and regards,