Original Post
Hello I was thinking about making a resource loader for 2d game engine, I have an idea of how I think it should work, Any suggestions, comments or links to articles or tutorials would help greatly. I was thinking of creating a XML file with a list of resources, Fonts Sound Textures Each item will have a unique ID and a path. For example I would create a tool that would generate this XML file and compress all the media in to one big file. Then I would create a small library that would load the XML file and decompress the media to memory and load the media in to my 2D Engine Any suggestions?
<node>
<media>
<!-- Black Arial font 12 pt -->
<fontXX id="1" size="12">
<file>Arial.TTF</file>
<color red="255" blue="255" green="255" />
</fontXX>
<!-- Red Courier font 24 pt -->
<fontXX id="2" size="12">
<file>Cour.TTF</file>
<color red="255" blue="0" green="0" />
</fontXX>
<texture id="3" width="32" height="32">
<file>Bug.tga</file>
</texture>
<texture id="4" width="32" height="32">
<file>ghost.tga</file>
</texture>
<texture id="5" width="32" height="32">
<file>fruit.tga</file>
</texture>
<texture id="6" width="32" height="32">
<file>wall.tga</file>
</texture>
<soundFX id="7">
<file>waka.wav</file>
</soundFX>
<soundFX id="8">
<file>BMG.mp3</file>
</soundFX>
</media>
</node>