Jump to content

3ddy
 Share

Recommended Posts

Hello,
I want to read data and properties from xml file in my game. I have already loaded the xml file in preloader using

 

preload: function () {            game.load.xml('xml', 'some_xml.xml', false);    },

I know that I can get it using cache.getXml(); but the question is... how to read data, properties from that xml? Some simple example will be great.

 

Another questions :
Is using xml file to store data (lots of text, nodes) a good idea? Would it work when making native app for android/ios using cocoon? I have found some old post that reading xml was not supported in cocoon, didnt find info if it has changed. If using xml is bad, what is the solution then? json?

Link to comment
Share on other sites

 

Another questions :

Is using xml file to store data (lots of text, nodes) a good idea? Would it work when making native app for android/ios using cocoon? I have found some old post that reading xml was not supported in cocoon, didnt find info if it has changed. If using xml is bad, what is the solution then? json?

For CocoonJS use JSON.

Link to comment
Share on other sites

For CocoonJS use JSON.

That means CocoonJS still doesn't support XML or it's  just inefficient? If I would like to stay with xml what should I choose to make native app that have XML support? PhoneGap?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...