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

Improve fluidity of arrow key paddle movement #2839

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

parlough
Copy link
Member

@parlough parlough commented Feb 15, 2024

It does this by simplifying the handling from being component based to checking currently pressed keys on the game tick and using the time delta.

Try it out at https://parlough-dart-dev.web.app/?sample=flame-game and let me know what you think.

I also renamed Bat to Paddle, since I kept getting confused.

@parlough parlough requested a review from johnpryan February 15, 2024 19:11
Copy link
Contributor

@johnpryan johnpryan left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for investigating this

@johnpryan johnpryan merged commit 445e177 into main Feb 15, 2024
5 checks passed
@johnpryan johnpryan deleted the fix/brick-breaker-keyboard-paddle branch February 15, 2024 19:43
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