标签:
CCSprite *sp = CCSprite::create(""); addChild(sp,0); sp->setPosition(ccp(s.width / 2, s.height / 2)); CCSprite *sprite,*sprite2; CCOrbitCamera *orbit,*orbit2; CCActionInterval *seq,*seq2; sprite = CCSprite::create("Images/back.png"); sp->addChild(sprite, 0); sprite->setPosition(ccp(0, 0)); orbit = CCOrbitCamera::create(1, 1, 0, 0, 90, 0, 0); seq = CCSequence::create(CCShow::create(), orbit, CCHide::create(), CCDelayTime::create(1), NULL); sprite->runAction(seq); sprite2 = CCSprite::create("Images/card.png"); sp->addChild(sprite2, 0); sprite2->setPosition(ccp(0, 0)); orbit2 = CCOrbitCamera::create(1, 1, 0, 270, 90, 0, 0); seq2 = CCSequence::create(CCHide::create(), CCDelayTime::create(1), CCShow::create(),orbit2, NULL); sprite2->runAction(seq2);
标签:
原文地址:http://www.cnblogs.com/jevil/p/4866345.html