Re: [FreecivDev] Suggestion: FreeCiv on a Hex!
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Andy Black wrote:
abcde
fghij
klmno
> if h is the hexagon in quesstion, it's neghbors are (clockwise from the
> top) c, d, i, m, g, b
> when looking at the cell boarders, you would look at the folowing array
> positions [x1, y1], [x, y1], [x+1, y1], [x1, y+1], [x, y+1], [x+1,
> y+1]
Which, for hexagon h give:
b c d l m n (instead of c d i m g b )
In hexmap with straight columns (opposed to straigth rows), you ALWAYS
take a [x,y1] and [x,y+1], [x1,y],[x+1,y]. And two more from either
y+1 or y1 x1/x+1 sides.
BTW, if somebody will start to implement this in C code, please use
hexes with aligned rows. It helps during repaint when you have
3dlooking sprites  you have to repaint only two hexes each from up and
bottom, instead of 3.
Artur
 Re: [FreecivDev] Suggestion: FreeCiv on a Hex!, (continued)

