1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #include "HelloWorldScene.h" Scene* HelloWorld::createScene() { auto scene = Scene::create(); auto layer = HelloWorld::create(); scene->addChild(layer); return scene; } bool HelloWorld::init() { if (!Layer::init()) { return false; } auto spr = Sprite::create("ball.png"); spr->setPosition(Point(50, 50)); this->addChild(spr); ccBezierConfig bezierConfig; bezierConfig.controlPoint_1 = Point(200, 400); bezierConfig.controlPoint_2 = Point(400, 150); bezierConfig.endPosition = Point(450, 50); auto action = BezierTo::create(3.0, bezierConfig); spr->runAction(action); return true; } | cs |
예제만 실행해보고 점프랑 뭐가 다른지 몰랐었는데
네이버 백과사전 참고
출처 : http://terms.naver.com/entry.nhn?docId=784451&cid=41828&categoryId=41828