5311 Size s = Director::getInstance()->getWinSize();
5314 for (
int i=2; i>0; --i)
5317 auto s1 = Sprite::create(
"ccs-res/cocosui/button.png");
5319 s1->setPosition(s.width*1/4, s.height*i/3);
5320 s1->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
5321 s1->setContentSize(s1->getContentSize() * 2);
5322 auto action1 = RepeatForever::create(RotateBy::create(5.0f, 360.0f));
5323 s1->runAction(action1);
5326 auto s2 = Sprite::create(
"ccs-res/cocosui/button.png");
5328 s2->setPosition(s.width*2/4, s.height*i/3);
5329 s2->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
5330 s2->setContentSize(s2->getContentSize() * 3);
5331 auto action2 = RepeatForever::create(RotateBy::create(5.0f, 360.0f));
5332 s2->runAction(action2);
5335 auto s3 = Sprite::create(
"ccs-res/cocosui/button.png");
5337 s3->setPosition(s.width*3/4, s.height*i/3);
5338 s3->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
5339 s3->setContentSize(s3->getContentSize() * 4);
5340 auto action3 = RepeatForever::create(RotateBy::create(5.0f, 360.0f));
5341 s3->runAction(action3);
5345 s1->setCenterRect(CC_RECT_PIXELS_TO_POINTS(Rect(6, 14, 2, 4)));
5346 s2->setCenterRect(CC_RECT_PIXELS_TO_POINTS(Rect(6, 14, 2, 4)));
5347 s3->setCenterRect(CC_RECT_PIXELS_TO_POINTS(Rect(6, 14, 2, 4)));
5351 auto point = Sprite::create(
"Images/r1.png");
5352 point->setScale(0.1f);
5353 point->setPosition( s1->getPosition() );
5354 addChild(point, 10);
5356 auto point2 = Sprite::create(
"Images/r1.png");
5357 point2->setScale(0.1f);
5358 point2->setPosition(s2->getPosition());
5359 addChild(point2, 10);
5361 auto point3 = Sprite::create(
"Images/r1.png");
5362 point3->setScale(0.1f);
5363 point3->setPosition(s3->getPosition());
5364 addChild(point3, 10);