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

SpriteAsset not setting width/height properly #1

Closed
Bjeaurn opened this issue Oct 5, 2019 · 0 comments
Closed

SpriteAsset not setting width/height properly #1

Bjeaurn opened this issue Oct 5, 2019 · 0 comments

Comments

@Bjeaurn
Copy link
Owner

Bjeaurn commented Oct 5, 2019

Width and height are being set by the Asset class, which takes it from the actual image. But in the case of a sprite, we don't want the full width/height of the image; cause we're only using a small part of the actual image for our sprite.

The sprite width/height should be set and equal to sizeX and sizeY.

Maybe refactor sizeX and sizeY to actually reflect width/height, I'm not sure if they have a separate function within the class.

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

No branches or pull requests

1 participant