Skip to content

Conversation

@JaskRendix
Copy link
Contributor

PR improves the pytmx integration with pyglet by upgrading the custom image loader function.

Key changes:

  • added parsing and handling for tile flip and rotation flags via a new handle_flags() helper
  • tiles are now transformed using get_transform() with support for horizontal, vertical, and diagonal flips
  • rotation support introduced based on Tiled's diagonal flip semantics
  • image resource path is now explicitly resolved with pathlib.Path, improving compatibility across environments
  • improved error handling: specific exceptions are logged with detailed context using exc_info=True
  • type annotations added for better clarity and static analysis support
  • clean separation of concerns between image loading and flag processing logic

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.

1 participant