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 option to rescale sprites #27

Merged
merged 5 commits into from
Jan 5, 2023

Conversation

cBournhonesque
Copy link
Contributor

The sprites I use are of a given size, but in my game I like to use transform.scale to set the exact size of an entity, not to just scale it up or down.

Hence, I usually manually scale all sprites to Vec2(1.0, 1.0), so that the transform.scale is the final size of my object.

I think it would be useful to let users have this option. Another way they could do it is to load the particule image directly, compute it's size, and change the scale themselves accordingly, but it's somewhat of a hassle compared to just setting the custom_size to (1.0, 1.0)

src/components.rs Outdated Show resolved Hide resolved
@abnormalbrain abnormalbrain added the enhancement New feature or request label Jan 4, 2023
@abnormalbrain abnormalbrain merged commit d2a0ae5 into abnormalbrain:main Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants