Tagged Questions
5
votes
1answer
124 views
How to determine what hexes are in an area bounded by 3 hexes
I've been searching for hex grid algorithms for a while now, but I'm not having much luck.
I'm working on a game that will be using hex grids for the board. There seems to be sufficient resources to ...
12
votes
1answer
336 views
Get ring of tiles in hexagon grid
Thanks to this post I'm able to collect adjacent tiles to a given tile.
But I'm pretty much stuck on an algorithm that gives me only a "ring" of tiles specified by an offset. The algorithm given in ...
6
votes
3answers
673 views
Is it better to hard code data or find an algorithm?
I've been working on a boardgame that has a hex grid as this board:
Since the board will never change and the spaces on the board will always be linked to the same other spaces around it, should I ...
3
votes
1answer
431 views
Drawing an outline around an arbitrary group of hexagons
Is there an algorithm for drawing an outline around around an arbitrary group of hexagons?
The polygon outline drawn may be concave. See the images below, the green line is what I am trying to ...
