在项目代码中载入cocostudio导出的动画并循环播放
时间:2017-04-14 09:30:54
收藏:0
阅读:489
须要在代码中引入#include "cocostudio/CocoStudio.h"
using namespace cocostudio;
ArmatureDataManager::getInstance()->addArmatureFileInfo("fishes/blowFish/Blowfish.ExportJson");
Armature* armature = Armature::create("Blowfish");
armature->setTag(10010);
armature->setPosition(350,350);
//播放动画
armature->getAnimation()->playByIndex(0);
this->addChild(armature);
原文:http://www.cnblogs.com/gccbuaa/p/6707119.html
评论(0)