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

Varying pong bounce angle #90

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Conversation

jrr
Copy link
Contributor

@jrr jrr commented Aug 28, 2024

Tackling another part of #85, this PR changes the bounce logic to determine a return angle based on where the ball hits the paddle.

pong-angle.mp4

@jrr
Copy link
Contributor Author

jrr commented Aug 28, 2024

Side note, an observation while doing this: as a Swift newbie, I found it easy to accidentally use doubles, when those are to be avoided on Playdate. Do you think it'd be possible for some ecosystem tooling to help with this? (perhaps the XCode plugin or maybe a linter could produce warnings?)

@finnvoor
Copy link
Owner

This is such a nice improvement 👌

Do you think it'd be possible for some ecosystem tooling to help with this?

I'll look into this, not sure what sort of support swift has built in but I'm sure we could do something.

@finnvoor finnvoor merged commit 63b23e6 into finnvoor:main Aug 28, 2024
1 check passed
@jrr jrr deleted the example-paddle-angle branch August 28, 2024 19:02
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