CCSprite* pImgBg = CCSprite::create("1.png"); pImgBg->setPosition(ccp(CCDirector::sharedDirector()->getWinSize().width / 2, CCDirector::sharedDirector()->getWinSize().height / 2)); this->addChild(pImgBg); CCActionInterval *action = CCShatteredTiles3D::create(0.2f, CCSizeMake(16,12), 5, false); pImgBg->runAction(action);
CCShatteredTiles3D,布布扣,bubuko.com
原文:http://www.cnblogs.com/newlist/p/3604698.html