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

Hexagonal Support in flame_tiled #1887

Closed
jtmcdole opened this issue Sep 4, 2022 · 0 comments · Fixed by #1892
Closed

Hexagonal Support in flame_tiled #1887

jtmcdole opened this issue Sep 4, 2022 · 0 comments · Fixed by #1892

Comments

@jtmcdole
Copy link
Contributor

jtmcdole commented Sep 4, 2022

What could be improved

Support Tiled's Hexagonal maps

image

Why should this be improved

Gota have that Catan hexagonal feel.

Any risks?

Doesn't seem like it at first glance; but I'm not an expert. I didn't look into the painted layer. I didn't try to render objects from the object layer.

More information

Building on #1882 and #1885 - I just wanted to go for completeness. Hexagons was a bit more though since staggering between X/Y oriented tiles requires some juggling. The other problem: hexagonal tiles are not square - if your destination tile size in TiledComponent.load is wrong, it looks bad (gaps).

Possibly future improvement: discover the destTileSize automatically from the tmx files?

jtmcdole added a commit to jtmcdole/flame that referenced this issue Sep 6, 2022
* Fixes flame-engine#1887
* Also adjusts offsets to match mental "bounding box" with the top-left
  at (0,0)
@jtmcdole jtmcdole mentioned this issue Sep 6, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant