I´m new to cocos2dx and programming cpp in general, so please bear with me
Trying to make a simple level design tool for my game level designer using XML. The plan is to make him edit a XML file that is on a server, setting game properties etc. The game should read this XML file at startup and set its properties accordingly.
If anyone has other approaches for making such a tool I would very much appreciate suggestions.
Found this guide: http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How\_to\_use\_CCHttpClient
Having problems setting the response callback function, xcode says : "No matching member function for call to ‘setResponseCallback’
Using cocos2d-x-2.1.4, developing for ios and Android
cocos2d::extension::CCHttpRequest* request = new cocos2d::extension::CCHttpRequest();
void LevelData::onHttpRequestCompleted(cocos2d::CCNode *sender, void *data)
//handle request here
Edit: I was able to read files using cURL