Hexagon
_____
/ \
/ \
\ /
\_____/
Let's not re-format all the test 😄
maybe also somewhere in the documentation reference https://www.redblobgames.com/grids/hexagons/? As its a really good primer on a lot of the hex logic that's being used here esp around the coordinate spaces
I'm also confused why this PR seems to include a bunch of work on the platformer tutorial. Is it just a merge issue or are there two PRs accidentally stuck together?
Sorry about the formatting stuff, I was rushing to get this done before leaving PyCon.
I'll remove that stuff
maybe also somewhere in the documentation reference https://www.redblobgames.com/grids/hexagons/? As its a really good primer on a lot of the hex logic that's being used here esp around the coordinate spaces
All of what I did was based on that, so this is a good idea if someone wants to pick that up and do it
Okay @einarf @DragonMoffon we should be good now. Sorry about the mess lol
Reviewing this again I realized that this isn't really a hexagon shape? I still think the cube coordinate helpers are useful, but we should also make a Hexagon shape that matches with Rect (and maybe other shapes like circle etc). I've talked to Digi and they are working on a Shape protocol so we can leave this PR as just the hex coordinate stuff. We may need to play with naming, but that can be done later imo.
Yeah this is for supporting hexagon tile maps. Sorry, could have made that clear
Yeah this is for supporting hexagon tile maps. Sorry, could have made that clear
I think what I'm building now will support this endeavor, so no harm no foul! Glad you did this work, I think it's good for the library, I'm only worried about naming stuff.
Maybe my object should be HexTile or something?
Maybe my object should be HexTile or something?
If that's a compromise you're willing to make, I like that.