Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool HelloWorld::init()
- {
- if (!Layer::init())
- {
- return false;
- }
- auto spr = Sprite::create("Icon-57.png");
- spr->setPosition(Point(100, 100));
- this->addChild(spr);
- auto action = RotateBy::create(2.0, 450);
- spr->runAction(action);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement