Skip to content

Solution for problem with rotation in tiled ? #1831

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

Merged
merged 5 commits into from
Dec 12, 2023

Conversation

vanicat
Copy link
Contributor

@vanicat vanicat commented Jul 10, 2023

Several test for rotation, and probable fix for #1805

A sign had to be changed in the tiled loader.

I've add to the :fixtures:tilemaps/rotation.json an object layer, with object that are tile, and are rotated. And arcade do not place some of the rotated tile correctly.

I believe that this is related to #1805, but I didn't not check for the correct direction of the rotation yet.

vanicat added 5 commits July 10, 2023 14:04
For now, when the rotation is not 180, the position disagree between
tiled and arcade.
It failed for now: the rotation is done in the wrong direction.
Changing some test to fix this.
All test are now green.

Probably fix pythonarcade#1805
@vanicat vanicat changed the title Test for rotatated and flipped object from tiled. Solution for problem with rotation in tiled ? Jul 10, 2023
@bunny-therapist
Copy link

This does in fact solve #1805
I created https://github.com/bunny-therapist/arcade_issue_1805 in order to demonstrate that issue, and installing from your fork solves both the problem of bad rotation and the problem of placement.

@vanicat
Copy link
Contributor Author

vanicat commented Nov 30, 2023

I've submitted this pull request some time ago now.

Is-there something I should do to make it go forward ?

Thanks.

@Cleptomania
Copy link
Member

Sorry for the long wait on this one, I've been out of commission on Arcade for a while, looks good though.

@Cleptomania Cleptomania merged commit 9b7f867 into pythonarcade:development Dec 12, 2023
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.

3 participants