首页 > 其他 > 详细

在项目代码中载入cocostudio导出的动画并循环播放

时间:2017-04-14 09:30:54      阅读:487      评论:0      收藏:0      [点我收藏+]



须要在代码中引入#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); 

在项目代码中载入cocostudio导出的动画并循环播放

原文:http://www.cnblogs.com/gccbuaa/p/6707119.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!