333 _tamara->removeFromParentAndCleanup(
true);
334 _grossini->removeFromParentAndCleanup(
true);
335 _kathia->removeFromParentAndCleanup(
true);
337 auto s = Director::getInstance()->getWinSize();
339 Size boxSize(100.0f, 100.0f);
341 auto box = LayerColor::create(Color4B(255,255,0,255));
342 box->setAnchorPoint(Vec2(0.5f,0.5f));
343 box->setContentSize( boxSize );
344 box->setIgnoreAnchorPointForPosition(
false);
345 box->setPosition(s.width/2, s.height - 100 - box->getContentSize().height/2);
348 auto label = Label::createWithTTF(
"Standard cocos2d Skew",
"fonts/Marker Felt.ttf", 16.0f);
349 label->setPosition(s.width/2, s.height - 100 + label->getContentSize().height);
350 this->addChild(label);
352 auto actionTo = SkewBy::create(2, 360, 0);
353 auto actionToBack = SkewBy::create(2, -360, 0);
355 box->runAction(Sequence::create(actionTo, actionToBack,
nullptr));
357 box = LayerColor::create(Color4B(255,255,0,255));
358 box->setAnchorPoint(Vec2(0.5f,0.5f));
359 box->setContentSize(boxSize);
360 box->setIgnoreAnchorPointForPosition(
false);
361 box->setPosition(s.width/2, s.height - 250 - box->getContentSize().height/2);
364 label = Label::createWithTTF(
"Rotational Skew",
"fonts/Marker Felt.ttf", 16.0f);
365 label->setPosition(s.width/2, s.height - 250 + label->getContentSize().height/2);
366 this->addChild(label);
367 auto actionTo2 = RotateBy::create(2, 360, 0);
368 auto actionToBack2 = RotateBy::create(2, -360, 0);
369 box->runAction(Sequence::create(actionTo2, actionToBack2,
nullptr));
cocos2d::Sprite * _grossini
virtual void onEnter() override
cocos2d::Sprite * _tamara
cocos2d::Sprite * _kathia