From: Erik V. <eri...@hc...> - 2005-08-10 18:49:45
|
> Changing the fixed hexmap is going to be quite a bit of a chore. > > A quick overview: > > It all starts in the HexMap class with the 'show' variable. > This variable defines which hexes in the grid are displayed. > You'll note that I've enabled nearly all of them. The ones > that are false are required to be false otherwise the > application blows up due to unhandled exceptions. > > The methods setupHexesGameState() and setupNeighbors() in > HexMap, and setupEntrancesGUI in each of the oriented hexmap > classes will all need some work in coping with a larger and > dynamically allocated map and making sure they're properly > being told the correct coordinates. > > Hmm... I just noticed that setupEntrancesGUI() is still > rounding off to integers when it doesn't need to now that > I've upgraded the Points to doubles. > > > And so now I'll try and poke at this a bit more... :) I've created a new, provisional data/1830/Map.xml (not yet checked in) and I intend to use this in creating a game-dependent hexagonal grid in the MapWindow. > One thing I've been looking at is graphics for the tiles. > John Galt's Tile Encyclopedia ( > http://www.diogenes.sacramento.ca.us/18xx_net/tiles/ ) is one > resource for tile graphics. Though, gifs don't scale very > well. Is there a way we could get these graphics converted > into SVG? I'm thinking a vector-based format is ideal. Please have a look at Marco Rocci's tile designer (see http://www.rails18xx.it/software.html) from which I have just exported 6MB of SVG files: all tiles in his database in all 6 orientations (although I think we really need 12 to cover both EW and NS-oriented maps). But I don't know how to use (or even view) SVG files. IrfanView cannot read this type of file. I've downloaded the Adobe SVG viewer, but it does not seem to work, either in IE or in Firefox. This applies to both the 3.0 and 6.0 versions. Erik. |