cocos2dx使用cocostudio动画

#include "cocostudio/CocoStudio.h"
using namespace cocostudio;

	ArmatureDataManager::getInstance()->addArmatureFileInfo("flappyBirdAnimation/Export/flappyBirdAnimation.ExportJson");  
armatureBird = Armature::create("flappyBirdAnimation");  

	armatureBird->setPosition(Point(winSize.width/2, winSize.height/2));
	this->addChild(armatureBird);
	armatureBird->getAnimation()->playByIndex(0);

你可能感兴趣的:(cocos2dx使用cocostudio动画)