sourcemars / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

CCSpriteFrameCache frame not found #112

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello Zhouweikuan,

I am a cocos2d for iPhone user, recently I try to porting my game to android 
and using your cocos2d-android-1.
I've been doing a example of the class CCSpriteFrameCache (method 
addSpriteFrames(String plist)) , but I meet a "CCSpriteFrameCache frame not 
found" problem. 

below is my test code,
        CCSpriteFrameCache cache = CCSpriteFrameCache.sharedSpriteFrameCache(); 
        cache.addSpriteFrames("TestSprites.plist");

        CCSprite test1 = CCSprite.sprite("Butterfly-01.png", true);
        test1.setPosition(CGPoint.ccp(winSize.width / 2.0f, winSize.height / 2.0f));
        addChild(test1);

I test it on eclipse IDE and use latest Zwoptex Version 1.5.2 on Mac OS X 10.7.2

I test it all fine in iOS cocos2d, but I stuck it on android, I hope you can 
help me.

Thanks and Congratulations for this great work.

Original issue reported on code.google.com by owencyc...@gmail.com on 11 Dec 2011 at 12:55

GoogleCodeExporter commented 8 years ago
I try all kind of Zwoptex's coordinates plist file include Zwoptex Generic, 
Flash, cocos2d format and texture is use by format PNG. The layout algorithm is 
Max Rect. All got the same error output.

Original comment by owencyc...@gmail.com on 11 Dec 2011 at 1:07

GoogleCodeExporter commented 8 years ago
Since I directly build the cocos2d-android-1 source code from 
http://github.com/ZhouWeikuan/cocos2d, it's successfully load the frame from 
zwoptex plist.

Thanks.

Original comment by owencyc...@gmail.com on 12 Dec 2011 at 10:42