From: Erik V. <eri...@hc...> - 2005-08-11 20:58:13
|
> > A quick google search shows me that there's Batik ( > http://xml.apache.org/batik/ ), which is an SVG Toolkit for > Java. > I'll check that out and see if it'll allow us to > display SVGs in our game. > > > It looks like Batik may solve our SVG problem. However, the > SVGs that Tile Designer outputs are a little strange. > > I've committed an example application in /test that will load > and display SVG graphics. You may need to fiddle with your > .classpath file before it'll work. > > The demo app seems to parse Tile Designer's SVGs without > complaining, but it doesn't display the graphic. However, any > of the sample files distributed in the Batik package work > just fine. I'm not quite sure what the deal is yet, but I'm > still looking into it. You could ask Marco how he has tested his SVG files. I'll have a look into the batik stuff later. In the meantime I have implemented (very) basic maps for 1830 and 1856: just the hexes with your label names, to which I have added the mapboard hex names. To make 1856 fit, I have reduced the scale of NS maps by a factor of 2. To make this all work, I had to make several changes to your hexmap GUI classes, to the extent that your test class does not work anymore. I don't know yet how to fit your and mine hexmap-related stuff together (I have added game.MapManager and game.MapHex, which are configured in the usual way via game.ComponentManager). I suppose it will be a trial-and-error exercise again.... Erik. |