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

Changed rotation to CW to match regular Bob behaviour #3

Merged
merged 1 commit into from Apr 29, 2024

Conversation

JCash
Copy link
Contributor

@JCash JCash commented Apr 27, 2024

No description provided.

@@ -84,7 +84,7 @@
cw: clockwise rotation
ccw: counterclockwise rotation
The amount of rotation is always 90°. Only required for supportsRotation=true -->
<rotationDirection>ccw</rotationDirection>
<rotationDirection>cw</rotationDirection>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By doing this, it matches the rest of the layout+code in Bob/Editor


<!-- Exporter version -->
<version>1.0</version>
<version>1.1</version>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, we have the version number in two places.
SHould investigate if we can get this number in the exporter script.

out.rotated = srcSprite.getRotated();
boolean rotated = srcSprite.getRotated();

out.setName(srcSprite.getName());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the setters api.

Comment on lines +199 to +209
// For legacy reasons, the other bob code wants it already rotated
if (rotated)
{
width = originalSize.getHeight();
height = originalSize.getWidth();
}
else
{
width = originalSize.getWidth();
height = originalSize.getHeight();
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another fix that highlights that we still have some more stuff to stream line to avoid extra confusion.

@JCash JCash requested a review from AGulev April 27, 2024 15:14
@JCash JCash merged commit 21205e2 into main Apr 29, 2024
17 checks passed
@JCash JCash deleted the sprite-rotate-fix branch April 29, 2024 07:33
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.

None yet

2 participants