bool HelloWorld::init()
{
bool bRet = false;
do
{
CC_BREAK_IF(! CCLayer::init());
//////////////////////////////////////////////////////////////////////////
// add your codes below...
CCTMXTiledMap* map = CCTMXTiledMap::create("test.tmx");
this->addChild(map);
bRet = true;
} while (0);
return bRet;
}
简单的贴图怎么出错… test.tmx和需要的png都已添加到资源,调试出现,11711172空指针吗?怎么回事呀,求解答呀{:soso_e154:}