层背景色更改方法

把HelloWorld接口声明改成

 

@interface HelloWorld : CCColorLayer

 

然后点击HelloWorldScene.m文件,在init方法里面做一些小小的修改,以便使我们能把层的背景颜色改成白的

 

if( (self=[super initWithColor:ccc4(255,255,255,255)] )) {

 

 

http://www.cnblogs.com/andyque/archive/2011/03/22/1990716.html

posted @ 2012-06-25 10:02  ArtSun  阅读(101)  评论(0)    收藏  举报