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

fix diagonal movement rate #712

Merged
merged 2 commits into from
May 20, 2024
Merged

fix diagonal movement rate #712

merged 2 commits into from
May 20, 2024

Conversation

jepler
Copy link
Contributor

@jepler jepler commented May 20, 2024

Note that scale_to gracefully handles the zero vector, so no special case is needed.

Jamie and I discussed and both had the gut feeling that leaving the direction property unchanged from now (so that its elements are still always +1, -1, or 0) was easier for implementation but could also make sense when explained.

Closes: #709

Note that `scale_to` gracefully handles the zero vector, so no special
case is needed.

Jamie and I discussed and both had the gut feeling that leaving the
`direction` property unchanged from now (so that its elements are still
always +1, -1, or 0) was easier for implementation but could also make
sense when explained.

Closes: ppb#709
@jepler jepler requested a review from a team as a code owner May 20, 2024 14:41
@AstraLuma
Copy link
Member

Where is Binnie?

Copy link
Member

@AstraLuma AstraLuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code looks good. Would you like to add yourself to CONTRIBUTORS.md?

@AstraLuma AstraLuma merged commit c2e4c42 into ppb:canon May 20, 2024
22 checks passed
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.

KeyBoardMovementSprite moves too quickly when moving diagonally
2 participants