Skip to content

Add test for flipped tile objects - #350

Merged
bjorn merged 1 commit into
mainfrom
test-tile-objects
Jul 6, 2026
Merged

bjorn merged 1 commit into
mainfrom
test-tile-objects

Conversation

@bjorn

@bjorn bjorn commented Jul 6, 2026

Copy link
Copy Markdown
Member

Closes #144.

Most of what that issue asks for turned out to already be covered: test_object_template_property asserts the tile id, TilesetLocation::Map/Template distinction and tileset resolution for both direct and templated tile objects. The remaining gap was the flip flags, which no test asserted for tile objects (test_flipped only covers layer tiles).

Adds two flipped tile objects to tiled_object_template.tmx (one flipped horizontally+vertically, one diagonally) and a test asserting the flags and tile id for those plus the unflipped object.

The tile id and tileset location of tile objects were already covered
by test_object_template_property, but the flip flags were not tested
for objects anywhere (test_flipped only covers layer tiles).

Closes #144
@bjorn
bjorn merged commit 91f9bf0 into main Jul 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test tile objects

1 participant