Advertisement
bynaki

RotateBy

Mar 6th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. bool HelloWorld::init()
  2. {
  3.     if (!Layer::init())
  4.     {
  5.         return false;
  6.     }
  7.  
  8.     auto spr = Sprite::create("Icon-57.png");
  9.     spr->setPosition(Point(100, 100));
  10.     this->addChild(spr);
  11.  
  12.     auto action = RotateBy::create(2.0, 450);
  13.     spr->runAction(action);
  14.  
  15.     return true;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement