Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"MyFile.plist"];
- CCSpriteFrame* spriteframe = [[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@"imageName.png"];
- CCSprite* sprite = [CCSprite spriteWithSpriteFrame:spriteframe];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement