Skip to content

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

Open
russellSE16 wants to merge 2 commits intowesbos:masterfrom
russellSE16:master
Open

Lesson 01 - Fix bug when key is held down#468
russellSE16 wants to merge 2 commits intowesbos:masterfrom
russellSE16:master

Conversation

@russellSE16
Copy link
Copy Markdown

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

Development

Successfully merging this pull request may close these issues.

1 participant