我修改了标准示例“Hello World”:
CCSprite *sprite = [CCSprite spriteWithFile:@"Untitled-1.png"];
CGSize winSize = [CCDirector sharedDirector].winSize;
sprite.position = ccp(winSize.width / 2, winSize.height / 2);
[label setBlendFunc:(ccBlendFunc){GL_ZERO, GL_SRC_ALPHA}];
[label setColor:ccBLACK];
[sprite addChild:label];
[self addChild:sprite];
我有:
如何删除/剪切“Hello World”标签周围的背景?