5246 Size s = Director::getInstance()->getWinSize();
5249 for (
int i=2; i>0; --i)
5252 auto s1 = Sprite::create(
"ccb/scale-9-demo.png");
5254 s1->setPosition(s.width*1/4, s.height*i/3);
5255 s1->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
5256 s1->setContentSize(s1->getContentSize());
5257 auto action1 = RepeatForever::create(RotateBy::create(5.0f, 360.0f));
5258 s1->runAction(action1);
5261 auto s2 = Sprite::create(
"ccb/scale-9-demo.png");
5263 s2->setPosition(s.width*2/4, s.height*i/3);
5264 s2->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
5265 s2->setContentSize(s2->getContentSize() * 2);
5266 auto action2 = RepeatForever::create(RotateBy::create(5.0f, 360.0f));
5267 s2->runAction(action2);
5270 auto s3 = Sprite::create(
"ccb/scale-9-demo.png");
5272 s3->setPosition(s.width*3/4, s.height*i/3);
5273 s3->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
5274 s3->setContentSize(s3->getContentSize() * 3);
5275 auto action3 = RepeatForever::create(RotateBy::create(5.0f, 360.0f));
5276 s3->runAction(action3);
5280 s1->setCenterRectNormalized(Rect(0.4, 0.4, 0.2, 0.2));
5281 s2->setCenterRectNormalized(Rect(0.4, 0.4, 0.2, 0.2));
5282 s3->setCenterRectNormalized(Rect(0.4, 0.4, 0.2, 0.2));
5287 auto point = Sprite::create(
"Images/r1.png");
5288 point->setScale(0.25f);
5289 point->setPosition( s1->getPosition() );
5290 addChild(point, 10);
5292 auto point2 = Sprite::create(
"Images/r1.png");
5293 point2->setScale(0.25f);
5294 point2->setPosition(s2->getPosition());
5295 addChild(point2, 10);
5297 auto point3 = Sprite::create(
"Images/r1.png");
5298 point3->setScale(0.25f);
5299 point3->setPosition(s3->getPosition());
5300 addChild(point3, 10);