8 hours, floor to hex, hex to floor.
Added in some new functions to get from location hex coord and back. Really struggled with writing arrays and passing them by reference and so on but it’s making sense. Also fixing just about everything I thought I had right.
I haven’t shouted out where I’m getting a lot of this math:
https://www.redblobgames.com/grids/hexagons/#pixel-to-hex