svg to dreamcast engine exporter.
This is a small utility that convert our maps (created in inkscape) in a C fonction that loads all the asset into our custom Dreamcast engine. It is essentially a XML parser looking for particular data. The program will check for any incompatible image size and will calculate the memory usage. It also keep tracks of filenames and will only load any duplicated assets once.
- Select the Output Folder first. This will be where your asset will be copied along with the mapdata.c file.
- Select your SVG. Once it is selected it will do all the job for you- copying your asset into the Output Folder, converting the object position and size into something usable for my unamed DC engine.
Here's some special XML tags that the software will catch
- u : expects a number between 1.0 and 0.0 - used for UV mapping.
- v : expects a number between 1.0 and 0.0 - used for UV mapping.
- setAnim : if the texture is a spritesheet, will select the appropriate sprite. expects a integer. you also need to set u and v for this to work
The program also detext if a images has been mirrored and will flip the UV map accordingly.
You will need processing in order to execute this.
If you're interested in using this for your project and want a less specific output than my custom engine, I'd be happy to try to make this more usable. Please fill an issue in or contact me at r.rabot_at_gmail.com