tileson icon indicating copy to clipboard operation
tileson copied to clipboard

Flipped tiles not supported hexagonal grid

Open Rallo-Andrii opened this issue 7 months ago • 0 comments

To calculate real tile gid tson::Tile uses flags FLIPPED_HORIZONTALLY_FLAG, FLIPPED_VERTICALLY_FLAG, FLIPPED_DIAGONALLY_FLAG. But if Tile is hexagonal we need (as I understand) additional flag like ROTATED_HEXAGONAL_120_FLAG:

const unsigned FLIPPED_HORIZONTALLY_FLAG  = 0x80000000;
const unsigned FLIPPED_VERTICALLY_FLAG    = 0x40000000;
const unsigned FLIPPED_DIAGONALLY_FLAG    = 0x20000000;
const unsigned ROTATED_HEXAGONAL_120_FLAG = 0x10000000;

link to documentation: https://doc.mapeditor.org/en/stable/reference/global-tile-ids/#code-example

Rallo-Andrii avatar Jul 10 '24 12:07 Rallo-Andrii