bool HelloWorld::init(){
if ( !CCLayerColor::initWithColor(ccc4(255, 255, 2555, 255))){
return false;
}
timer=CCProgressTimer::create(CCSprite::createWithSpriteFrameName("cardBg.png"));
timer->setType(kCCProgressTimerTypeRadial);
timer->setReverseDirection(true);
timer->setPercentage(time);
timer->setReverseProgress(true);
timer->setPosition(ccp(250,250));
addChild(timer);
this->scheduleUpdate();
}
void HelloWorld::update(float delta){
timer->setPercentage(time--);
}