581 auto s = Director::getInstance()->getWinSize();
583 auto p = Sprite::create(
s_back3);
585 p->setPosition( Vec2(s.width/2, s.height/2) );
586 p->setOpacity( 128 );
593 s = p->getContentSize();
595 sprite->setScale(0.5f);
596 p->addChild(sprite, 0);
597 sprite->setPosition( Vec2(s.width/4*1, s.height/2) );
598 orbit = OrbitCamera::create(2, 1, 0, 0, 360, 0, 0);
599 sprite->runAction( RepeatForever::create( orbit ) );
603 sprite->setScale( 1.0f );
604 p->addChild(sprite, 0);
605 sprite->setPosition( Vec2(s.width/4*2, s.height/2) );
606 orbit = OrbitCamera::create(2, 1, 0, 0, 360, 45, 0);
607 sprite->runAction( RepeatForever::create( orbit ) );
612 sprite->setScale( 2.0f );
613 p->addChild(sprite, 0);
614 sprite->setPosition( Vec2(s.width/4*3, s.height/2) );
615 ss = sprite->getContentSize();
616 orbit = OrbitCamera::create(2, 1, 0, 0, 360, 90, -45),
617 sprite->runAction( RepeatForever::create(orbit) );
621 orbit = OrbitCamera::create(10, 1, 0, 0, 360, 0, 90);
622 p->runAction( RepeatForever::create( orbit ) );
static const char s_back3[]
static const char s_pathGrossini[]