douglascdev / snake

A snake game made with Python3 and Pygame!
https://www.pygame.org/project/5080
Apache License 2.0
4 stars 5 forks source link

Prevent missclicking on the game over screen #22

Closed douglascdev closed 4 years ago

douglascdev commented 4 years ago

After dying, the Game Over screen is shown, which then awaits for the user to press a key to continue the game. Since the screen is shown immediately after death, the user could still press a key to move the snake, and not to continue the game. To fix that I tried putting a call to pygame.time.wait there, but that does not seem to work. Remove the current solution and add another one, that really prevents missclicking after snake's death.

Vicfs commented 4 years ago

Hey, may I try this one?

douglascdev commented 4 years ago

Sure, go ahead @Vicfs