Cocos2d-x v3.x … 今日こそはマジがんばるつもりで ^^;
そんな今回のチュートリアル
Cocos2d-x v3 C++ Tutorial 6 – Positioning Using MoveBy
https://www.youtube.com/watch?v=v3w2kQxI6z0
Cocos2d-x v3 C++ Tutorial 7 – Positioning Using MoveTo
https://www.youtube.com/watch?v=kCMnlAT38KY
超短いww 前回のサンプルの続きから… ^^;
Size visibleSize = Director::getInstance()->getVisibleSize(); Point origin = Director::getInstance()->getVisibleOrigin(); { auto sprite = Sprite::create("CloseNormal.png"); auto position = (Point(visibleSize) * 0.5f) + origin; sprite->setPosition(position); this->addChild(sprite, 0); //Tutorial 6 { auto action = MoveBy::create(3.0f, Point(150.0f, 50.0f)); sprite->runAction(action); } }
…よし OK, OK w