getting neighbors of a hexagon in a hexagon grid?
Posted: Tue Oct 03, 2017 10:51 am
I'm trying to make a game in Love2D that uses a hexagon grid. The problem is, the library I'm using has all the functions I need, except a function that allows me to get the surrounding neighbors of a hexagon. The function IS there, it's just empty (the github page for it hasn't been edited in 3+ years so there's little chance of it ever being updated).
If anyone could look at the source code for the library and tell me how to go about implementing the missing function, that'll be great.
Here's the source code for the library.
If anyone could look at the source code for the library and tell me how to go about implementing the missing function, that'll be great.
Here's the source code for the library.