代码:
#include “HelloWorldScene.h”
#include “cocostudio/CocoStudio.h”
#include “ui/CocosGUI.h”
USING_NS_CC;
using namespace cocostudio::timeline;
Scene* HelloWorld::createScene()
{
// ‘scene’ is an autorelease object
auto scene = Scene::createWithPhysics();
// 'layer' is an autorelease object
auto layer = HelloWorld::create();
// add layer as a child to scene
scene->addChild(layer);
// return the scene
return scene;
}
// on “init” you need to initialize your instance
bool HelloWorld::init()
{
if ( !Layer::init() )
{
return false;
}
auto rootNode = CSLoader::createNode("Xia_Idel.csb");
rootNode->setPosition(200, 200);
this->addChild(rootNode);
return true;
}
感谢各位,我实在是没辙了,一个新人周围都没人可以问