From: Erik V. <eri...@hc...> - 2005-09-21 19:04:53
|
> OK... I've taken my own advice and committed a version of > GUIEWHex that comments out the Paint() method. OK > Which brings me to the question I was JUST about to bring up.... > > I'd like to add a tag to the XML files to designate what tile > image to load. However, I'm not sure which file to use: > tiles.xml or tileset.xml > > I'm thinking just a basic <image>filename.png</image> tag > ought to be sufficient. > > What do you think? I would go for a naming convention so that no extra tag would be needed. For instance: tile0057_0.png would be a normally oriented tile 57 picture (the last number indicates the orientation). The preprinted tiles have negative numbers (or zero) in Marco's dictionary, so that would become tile-0901_0.png (tile0000_0.png). Tileset.xml should of course get extra attributes to indicate the orientation of the preprinted tiles. We need to agree which direction the standard orientation (0) is. For PBEM the standard seems to be the one with the preprinted tile number south. Perhaps it is easiest to follow Marco's tile directory again: the standard orientation would then get number 0. We have a maximum of 12 orientations, so the numbers could run 0-11 (or a-k, or whatever). We would not always need 12 orientations: 0057_6 would be identical to 0057_0 because of the symmetry. We could make it a rule that if an orientation >5 does not exist, we take the one 6 lower. Marco's tiles are NS-oriented, so NS-tiles get the even numbers. The EW-tiles would then have odd orientation numbers. Just my thoughts.... Erik. |