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);
时间: 2024-10-12 12:32:37