2015-6-24add loading sprite and repeat rotate;

来源:互联网 发布:复合增长率算法 编辑:程序博客网 时间:2024/05/22 08:56
1// add loading sprite and repeat rotate
loadingSprite = CCSprite::create("game_ui_loading_cycle.png");
        loadingSprite->setPosition(ccp(size.width/2, size.height/2));
this->addChild(loadingSprite, 200);


CCActionInterval*actRotate = CCRotateBy::create(3, 360);
CCAction* actRep = CCRepeatForever::create(actRotate);

loadingSprite->runAction(actRep);


0 0
原创粉丝点击