Hey,
We have been working on our 2D Game Engine, EpicCTF, in AppGameKit Tier 1. Altough for our level editor, we had to use some sort of file format. We knew we wanted it to be simple to read and universal. It was clear what it should be using, the XML format. And we know some people on the forum have been asking for an xml parser. So here it is.
It is able to read something like this:
<?xml version='1.0'?>
<object src='entities/crate01.jpg' x='200' y='200' angle='90' size='100' shadow='box' physics='static' />
<object src='entities/crate01.jpg' x='100' y='200' angle='90' size='100' shadow='box' physics='static' />
<object src='entities/crate01.jpg' x='150' y='250' angle='90' size='75' shadow='box' physics='static' />
<object src='entities/crate01.jpg' x='300' y='350' angle='100' size='100' shadow='box' physics='static' />
<marker src='core/marker_flag.png' x='200' y='200' alpha='150' depth='0' speed='1' />
<light type='point' x='100' y='100' size='300' red='200' green='0' blue='100' intensity='255' />
You can find indepth information about this, on our blog:
blog.codepard.com
We explain how to use it, and what it is able and not able to do.
We also give an example, to load the data into your app.
We attached the xmlParser.agc to this post.
We are still updating it as we go on with the engine, i am sure there are some good optimization possible.
You can use it as you wish. Some credits to the codepards would be cool! You can always like us when you feel like it!
At
http://www.codepard.com/ !
Cheers,