참고링크 [Bottom] [Top]
Hex map Hex_map
Hex Grids http://sc.tri-bit.com/Hex_Grids
Hexagonal Grids http://www-cs-students.stanford.edu/~amitp/gameprog.html#hex
Hex Grid 구현 [Bottom] [Top]
1 #define SQUARE_SIDE 0x20 2 #define SQUARE_SIDE_HALF (SQUARE_SIDE / 2) 3 4 Block.x = Pos.x / SQUARE_SIDE; 5 Block.y = (Pos.y + ((Block.x % 2) * SQUARE_SIDE_HALF)) / SQUARE_SIDE;
