cocostudio导出的帧动画的三个文件怎么应用到cocos2d-x中

cocostudio导出的帧动画有Panda.plist、Panda.ExportJason、Panda.png三个文件,如何把他们用在cocos2d-x中,比如一段什么代码可以直接替换HelloCpp中的Init()中的代码能够直接运行成功

头文件#include "cocos-ext.h" using namespace cocos2d::extension;

init中加入:

CCArmatureDataManager::sharedArmatureDataManager()->addArmatureFileInfo("ptcb0.png", "ptcb0.plist", "ptcb.ExportJson");

CCArmature *armature = CCArmature::create("ptcb");

armature -> setPosition(ccp(300, 200));
armature -> setTag(100);
armature ->getAnimation() ->play("walk");
this -> addChild(armature);