-
-
Notifications
You must be signed in to change notification settings - Fork 3
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 for the firing bug #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I just ran the CI, and seems like black
(the code formatter I'm using) is unhappy. To fix this, open your fork locally, in an environment with Nox installed, then run nox -s keep-codebase-clean
. Then push the changes here.
If you prefer that I do the changes, tell me!
I also edited your first post to link this PR with the issue, so we can close it after merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tested locally. Indeed, the bug is now gone! 🎉
I can spot two things to make this PR ready:
- Remove the
print
, at line 165? On a Windows distribution, this won't be visible, but other distributions will fill up with unecessary information. You can still useprint
for testing purposes, but don't push them here. - Fix the code formatting, see Fix for the firing bug #19 (review).
Oh! Sorry, I forgot that one. Removed!
I did it as you said, and here's the output: But main.py wasn't changed. Is that OK? |
Did you push the changes? On a Git local clone, run |
I will push the changes after confirming this: #18 (comment) |
Pushed! |
Hmm... It did, I don't know why. Did you run Nox in the same branch than the PR? Maybe that's the issue. About the behavior changes, I will review them soon. |
Hey! All checks passed @DiddiLeija! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @HarshNarayanJha! 🎉
I have fixed the bug stated in issue #18 by just checking if the space key was held for long enough to stop firing that weird looking continuous bullets.
Fixes #18