Skip to content

Conversation

@akapkotel
Copy link
Contributor

Updating sprite width/height was not changing it's hitbox. Now it is.

Working with to the code example posted by @eruvanos :

The old spaceship sprite before width change:
width old

And after self.sprite.width changed to 198:
width changed

Also, assertions:

assert hit'
assert self.sprite.right == self.sprite.center_x + 90

are now resolved to True.

Updating sprite width/height was not changing it's hitbox. Now it is.
@pvcraven pvcraven merged commit 19ff987 into pythonarcade:development Sep 30, 2020
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.

2 participants