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

Lesson 01 - Fix bug when key is held down #468

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

russellSE16
Copy link

This PR fixes the bug where if the key is held down the 'playing' class doesn't get removed. It does so by adding some lines to prevent the sound being played a second time until the same key is released. This also feels more intuitive as holding down a key doesn't make the sound play repeatedly, you must press the key repeatedly to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant