Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rotation based on TMX flipping flag #780

Merged
merged 2 commits into from
Aug 22, 2021

Conversation

jan-xyz
Copy link
Contributor

@jan-xyz jan-xyz commented Aug 4, 2021

When working on my project I noticed that Engo is losing the information about flipped tiles in the tile map when converting from the TMX structure to the internal model. This pull request adds this feature by the means of adding a Rotation in degree to the internal TMX Tile model. I just now went this path, if this is in some way not how you intend to solve this problem, please let me know 🚀 I hope this is also in your interest and thank you for this really fun 2D engine!

This adds also a changed map to the adventure demo with 4 rotated flowers on the ground.
Screenshot 2021-08-05 at 01 21 44
fixes #779

@coveralls
Copy link

coveralls commented Aug 22, 2021

Coverage Status

Coverage increased (+0.1%) to 39.368% when pulling 4cc7f83 on jan-xyz:add_rotation_to_tile_model into dbed6c3 on EngoEngine:master.

@Noofbiz
Copy link
Member

Noofbiz commented Aug 22, 2021

Looks great! Thank you for your contribution!

@Noofbiz Noofbiz merged commit f3cbd80 into EngoEngine:master Aug 22, 2021
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.

TMX resources don't respect transformations when loading tiles
3 participants