cocos2d – take a screenshot

How to make a screenshot with cocos2d 2.0 and CCRenderTexture: -(UIImage*) takeScreenShot { [CCDirector sharedDirector].nextDeltaTimeZero = YES; CGSize winSize = [CCDirector sharedDirector].winSize; CCLayerColor* blankLayer = [CCLayerColor layerWithColor:ccc4(255, 255, 255, 0) width:winSize.width height:winSize.height]; blankLayer.position = ccp(winSize.width/2, winSize.height/2); CCRenderTexture* rtx = [CCRenderTexture renderTextureWithWidth:winSize.width height:winSize.height]; [rtx begin]; [blankLayer visit]; [[[CCDirector sharedDirector] runningScene] visit]; [rtx end]; return [rtx...

read more

Ice Heroes – waiting for review !

Ice Heroes has just been submitted to the app store. Now finishing some screenshots, and texts for the app store and press...

read more