tileson
tileson copied to clipboard
Flipped tiles not supported hexagonal grid
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