Tuesday, 16 October 2012

Set the background color to the cclayer in cocos2d + iPhone

//write it inside the init method of cclayer
CCLayerColor* colorLayer = [CCLayerColor layerWithColor:ccc4(128, 0,0, 128)];
[self addChild:colorLayer z:0];

No comments:

Post a Comment