编辑器和cocos工程代码 都是前天刚下载的。
CocoStudio 版本号 1.0.2.0
cocos2dx 版本号 cocos2d-x-2.2.0
从动画编辑器中自带的 手雷小猫工程中,直接到处资源,放到cocos2dx的资源目录下。
先上图:
cocos工程里除了给helloCpp引用了 Extensions.lib等lib包外,代码还是HelloWorldScene的初始代码。
在HelloWorld::init() 按照 编辑器帮助中,添加了如下 代码
CCArmatureDataManager::sharedArmatureDataManager()->addArmatureFileInfo(“DemoPlayer0.png”,“DemoPlayer0.plist”,“DemoPlayer.ExportJson”);
CCArmatureDataManager::sharedArmatureDataManager()->addArmatureFileInfo(“DemoPlayer1.png”,“DemoPlayer1.plist”,“DemoPlayer.ExportJson”);
CCArmature *armature = CCArmature::create(“DemoPlayer”);
armature->getAnimation()->playByIndex(1);
armature->setScale(0.5f);
armature->setPosition(ccp(visibleSize.width * 0.5, visibleSize.height * 0.5));
this->addChild(armature,2);
都是很简单的demo代码。但是还是出问题了。
求教。
感觉这什么都没有干,很简单的一个操作,就出问题了,你们都好好的么。。。