5702 Size s = Director::getInstance()->getVisibleSize();
5704 SpriteFrameCache::getInstance()->addSpriteFramesWithFile(
"Images/blocks9ss.plist");
5707 auto s1 = Sprite::createWithSpriteFrameName(
"blocks9r.png");
5709 s1->setPosition(s.width/2-s.width/3, s.height/2);
5710 s1->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
5711 s1->setCenterRectNormalized(Rect(1/3.f, 1/3.f, 1/3.f, 1/3.f));
5712 s1->setContentSize(s1->getContentSize()*1.5);
5713 s1->setFlippedX(
true);
5715 auto s2 = Sprite::createWithSpriteFrameName(
"blocks9r.png");
5717 s2->setPosition(s.width*2/4, s.height/2);
5718 s2->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
5719 s2->setCenterRectNormalized(Rect(1/3.f, 1/3.f, 1/3.f, 1/3.f));
5720 s2->setContentSize(s2->getContentSize()*1.5);
5723 auto s3 = Sprite::createWithSpriteFrameName(
"blocks9r.png");
5725 s3->setPosition(s.width/2+s.width/3, s.height/2);
5726 s3->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
5727 s3->setCenterRectNormalized(Rect(1/3.f, 1/3.f, 1/3.f, 1/3.f));
5728 s3->setContentSize(s3->getContentSize()*1.5);
5729 s3->setFlippedY(
true);