-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
feat: Hexagonal maps #1892
feat: Hexagonal maps #1892
Conversation
* Fixes flame-engine#1887 * Also adjusts offsets to match mental "bounding box" with the top-left at (0,0)
Function was getting too long and had too many if/else tracks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, good job! What angle are the hexagonal tiles in when they are angled? Looks like less than for the isometric view?
I don't know for these specific tiles, but they are not top-down. This is OK since Tiled doesn't ask you to define "length of one side" and force you into top-down mode - it asks you for tile width and height. I think this will work for trimetric hexagons (where width = 2 *h of the tile). I can experiment later today or tomorrow. |
@jtmcdole It looks like this PR inadvertently removed taking |
@kurtome - it was in the previous PR. Sorry about that oversite! When you do, can we add some golden tests to make sure this doesn't happen again? I added several goldens already, so it should be easy to add more. |
Description
Adds support for Tiled's Hexagonal maps.
Checklist
fix:
,feat:
,docs:
etc).docs
and added dartdoc comments with///
.examples
.Breaking Change
Related Issues
Fixes #1887
Similar to #1882