首页 > 代码库 > cocos3 抛物线调用

cocos3 抛物线调用

    auto sp=Sprite::create("hero.png");    sp->setPosition(visibleSize.width/2,visibleSize.height/2);    addChild(sp);    auto pa=Parabola::create(1,sp->getPosition(),5,60,10);    auto sq=Sequence::create(        pa,        CallFunc::create(CC_CALLBACK_0(Sprite::removeFromParent, sp)),        NULL    );    sp->runAction(sq);

 

cocos3 抛物线调用