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 basic rotation & scaling & pivoting #163

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

WilliamQiufeng
Copy link
Member

@WilliamQiufeng WilliamQiufeng commented Feb 28, 2025

Resolves #162

This PR adds scaling and rotation around a pivot for any drawables, not limited to sprites.
Changes & Features:

  • We use matrix calculation now, there might be performance issues, but its not obvious
  • Rotation and scaling applies to their descendents
  • Sprites have IndependentRotation now, which when set fixes the rotation of the sprite
  • Merging this change will require Quaver's menu visualiser bar to have IndependentRotation set, and no other observable change needs to be done at the point
  • This will enable the capability of letterboxing and scaling gameplay view down so it can contain more people on the same screen.

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.

Scaling of Drawables
1 participant