Tryin to draw my temp hex tiles, but i am having problems getting them to ‘stick’ horizontially, ive read tuts. but my problem is that i dont know how to find the length of each side on the hexagon, i need that for the other problems to work, but ive gone this far with just dividing the rectangular hexagon image.
code:
// even row
if (i%2==0) {
hexGraphic[i][j].draw(g,
(int)xPos+i*HEX_SIZE,
(int)yPos+j*HEX_SIZE);
}
// odd row
else {
hexGraphic[i][j].draw(g,
(int)xPos+i*HEX_SIZE,
(int)yPos+j*HEX_SIZE+HEX_SIZE/2);
}
picture:
http://img295.imageshack.us/img295/8981/hexhelpni9.png