Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for pointy-top layout #7

Open
anissen opened this issue Sep 27, 2019 · 2 comments
Open

Support for pointy-top layout #7

anissen opened this issue Sep 27, 2019 · 2 comments

Comments

@anissen
Copy link

anissen commented Sep 27, 2019

This is a great implementation of the hex grid library. I'm missing the layout option for pointy-topped hexagons however. I'm using this tileset which only has pointy-topped hexagons.
The implementation could be made to take the layout orientation into account (see e.g. https://github.com/droxmusic/HexMap/blob/master/HexMap/HexMap.gd).

I hope you'll consider this addition or, alternatively, have some pointers on how to convert your library into using a pointy-topped layout. Thanks!

@romlok
Copy link
Owner

romlok commented Oct 19, 2019

Hi, thanks, and sorry for the slow response. I've been out of the Godot-verse for a while.

The first way to implement point-top hexes that comes to mind is to use flat-top orientation, and simply rotate the camera! 😆

It would be nice to implement pointy-topped natively, but I'm concerned about how much more complicated (or duplicated) it would make the calculation code. I wonder how useful it would be just for HexGrid to be able to automatically convert godot<->grid coordinates in either flat or pointy mode.
I can't promise any action toward this any time soon though.

@anissen
Copy link
Author

anissen commented Oct 20, 2019

Okay, thanks for taking the time to reply :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants