akinnie
2002.06.06, 08:51 AM
I'm porting a boardgame to computer and need a simple way to implement a hex map. I want to have the board made up of hexes. In fact, I am going to attempt to map them to an actual map jpeg I get from the boardgame author.
Would you know where I could get suggestions for this sort of thing? Or source code?
I assume I use a custom view in the map window, but I'm a bit unsure of how to implement the hex class. I assume the custom view will have a 2-d array of hexes, and I'll fiddle with the display so odd numbered rows will be offset up by 1/2 the hex's pixel height, or some such.
Any suggestions would be appreciated. Thanks!
Andrew Kinnie
:D
Would you know where I could get suggestions for this sort of thing? Or source code?
I assume I use a custom view in the map window, but I'm a bit unsure of how to implement the hex class. I assume the custom view will have a 2-d array of hexes, and I'll fiddle with the display so odd numbered rows will be offset up by 1/2 the hex's pixel height, or some such.
Any suggestions would be appreciated. Thanks!
Andrew Kinnie
:D