Triangular TileMap #4175
-
I know that it's a unusual pattern but I'm seeking to draw a game board with an equilateral triangle tiling. Something like that: I also know that triangle grid is the dual tesselation to hexagonal grid. Thus, numerous people recommend using a hex grid instead. But this option is viable only if you move on the vertices of triangles. In my case, each triangle would be a cell of the grid, players will move from one triangle to another. Currently, this type of tiling is not available in Tiled. Is it something worth considering? For more insights, this article about triangular tile maps is really interesting. I also post this question toward the PhaserJS game engine. But, they heavily rely on TMX model to implement their tile maps. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Sure, it would be very interesting to support this type of grid. Would you possibly be interested in working on this? The various grids currently supported by Tiled are implemented by the following renderers:
Things to note:
|
Beta Was this translation helpful? Give feedback.
-
No really fluent with C++ but I will get a eye on the code. I have coded in PhaserJS, manually, a triangular grid with a 2D array as storage and a coordinate system. Will see if it can be of any inspiration to port that to Tiled. Thanks. |
Beta Was this translation helpful? Give feedback.
Sure, it would be very interesting to support this type of grid. Would you possibly be interested in working on this?
The various grids currently supported by Tiled are implemented by the following renderers:
OrthogonalRenderer
to share object rendering code)HexagonalRenderer
, by just setting one side of the hex to 0-length)Things to note: