摘要:
unsigned long len = 0; char* pBuffer = (char*)CCFileUtils::sharedFileUtils()->getFileData("map.tmx", "rt", &len); CCTMXTiledMap* cme=CCTMXTiledMap::createWithXML(pBuffer,NULL);用这种方法创建tmx地图可能会失败,跟踪调试进取看到,在解析xml中int result = xmlSAXUserParseMemory( &saxHandler, this, pXML 阅读全文