Skip to content

Fix sprite scaling issues#1417

Merged
einarf merged 1 commit intopythonarcade:developmentfrom
einarf:sprite-wh-scale
Nov 28, 2022
Merged

Fix sprite scaling issues#1417
einarf merged 1 commit intopythonarcade:developmentfrom
einarf:sprite-wh-scale

Conversation

@einarf
Copy link
Member

@einarf einarf commented Nov 28, 2022

When setting width and height we simply calcualte a new scale based on the textures size. This simplifies the calculations, avoids division by zero issues and allows sprite scale 0 without destroying the hit box points.

@einarf einarf merged commit b10bdd6 into pythonarcade:development Nov 28, 2022
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.

1 participant