News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

determining range on a hexagonal map

Started by andrik, February 15, 2008, 01:25:26 PM

Previous topic - Next topic

andrik

Hi,

I'm in need of some help. I'm trying to find the right formula to dertermine the range in hexes between two hex locations. I use a x,y coordination system. I tried the old Pythagoras formula but it doesn't seem to work al the time, so if somebody knows a better formula, please tell me.

thanks in advance,
Andrik

GregC

This site has a lot of info. There is a section on hexagons.

http://www-cs-students.stanford.edu/~amitp/gameprog.html