TextureAtlas xml reading

Hello,

Still your defold newbie here. Since last time, I’ve made progress in my understanding of this large beast.

Tonight, I wanted to try and integrate some of Kenny’s assets and stumbled on an XML file containing TextureAtlas definitions:

<TextureAtlas imagePath="sheet.png">
	<SubTexture name="alienBeige.png" x="380" y="0" width="40" height="66"/>
	<SubTexture name="alienBlue.png" x="420" y="0" width="40" height="66"/>
	<SubTexture name="alienGreen.png" x="380" y="66" width="40" height="66"/>
...

I was wondering if these is something out there to load these in defold or if I should either write code to parse this stuff or give up and rebuild the atlases myself?

That’s a lot of ORs in such a small sentence, but still, I’m sure someone here will undestand my question.

Thanks!

This will definitely be the fastest!

Not as fast as your own reply! Thanks! :zap:

You could combine Best XML to JSON Converter Online and API reference (json).