Add support for rotated/mirrored tiles #5652
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds rotation and mirror data to tiles, along with the ability to save and load it.
Yep, that's pretty much it. Rotatable tiles. Hell yeah.
This changes how maps are serialized. Map serialization has gone from version 6 to 7. It ensures old maps can be loaded, however it does not have backwards-compatability.
Video example:
![Youtube video](https://camo.githubusercontent.com/e7b6ac25032bc2f5437856adf754e6d1f22f158da5d3a05000d5fc9aa778529f/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f2d626f6f502d666938386f2f302e6a7067)