519 Size s = Director::getInstance()->getWinSize();
520 auto parent = Node::create();
521 parent->setContentSize(s);
522 parent->setAnchorPoint(Vec2(0.5f, 0.5f));
523 parent->setPosition(s.width/2, s.height/2);
524 this->addChild(parent);
526 auto back = Sprite::create(
s_back3);
527 parent->addChild( back, -10);
528 back->setAnchorPoint( Vec2(0.0f,0.0f) );
529 auto backSize = back->getContentSize();
532 auto menu = Menu::create(item,
nullptr);
533 menu->alignItemsVertically();
534 menu->setPosition( Vec2(backSize.width/2, backSize.height/2));
535 back->addChild(menu);
537 auto rot = RotateBy::create(5, 360);
538 auto fe = RepeatForever::create( rot);
539 item->runAction( fe );
541 auto move = MoveBy::create(3, Vec2(200.0f,0.0f));
542 auto move_back = move->reverse();
543 auto seq = Sequence::create( move, move_back,
nullptr);
544 auto fe2 = RepeatForever::create(seq);
545 back->runAction(fe2);
547 auto orbit = OrbitCamera::create(10, 0, 1, 0, 360, 0, 90);
548 parent->runAction(orbit);
static const char s_PlaySelect[]
static const char s_back3[]
static const char s_PlayNormal[]