CCShatteredTiles3D

    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);

 

你可能感兴趣的:(tiles)