issues
search
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
Kill snake when colliding with itself
#1
Closed
douglascdev
closed
4 years ago
douglascdev
commented
4 years ago
Create a function that shows a "Game Over" screen, asking the user to press a certain key to quit or any other key to continue
Put the instructions that currently create the game in a separate function
Call both of them in a infinite loop
When the head colides with one of the body sprites, return out of the game function("Game Over" will be called after that)