115Volt wrote:
At the moment our editor produces a xml-file among other things it contains vertices which form polygons.
This polygons are triangulate and the triangles are merged till a certain (configurable) max-size is reached,
what comes out are the landpieces you see in the demo.
This polygons are triangulate and the triangles are merged till a certain (configurable) max-size is reached,
what comes out are the landpieces you see in the demo.
Inkscape is a vector graphics drawing tool (http://www.inkscape.org/) which produces SVG (Scalable Vector Graphics) files. SVG is XML so it might be fairly easy to switch.
If you download Inkscape, do "save thsi file" or something on this link (http://blissfulthinking.nl/levelzero.svg), and open it in Inkscape you might get the idea. Check the different layers for geometry, graphics, entities etc. Right click an entity for example and choose Object Properties. There, in the label, you can see info about what it represents.
My method of using Inkscape is very rough, I don't configure anything or write custom scripts to make beautiful level files; they are raw and dirty SVG. The Layers and the Labels are what my parser relies on.
To get an impression of a game using it:
http://blissfulthinking.nl/gamezero