Ciezo/Snake-Game

On Gameplay Window what happened was if you keep long pressing the key buttons (arrow keys and WASD) the sound effect does not stop playing

Closed this issue · 1 comments

Ciezo commented

Problems
Keep long pressing and don't release the WASD keys or arrow keys in moving the snake. And the sound effect when moving the snake does not stop playing LOL

Enumeration:

  1.  Error playing sound effect, does not stop when long pressed with its assigned keys 
    
  2.  Fix the method in keyEvents
    

Detailed Descriptions
Make it play once only!


Screenshots
Put all your screenshots here! This will be helpful for debugging, fixes, and improvements!!

Ciezo commented

FIXED!!!!! Now, the key event is only upon releasing a keystroke for snake movement (WASD and arrow keys)