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

Let snake go back to the other side of the screen #2

Closed douglascdev closed 4 years ago

douglascdev commented 4 years ago

When the snake reaches one of the edges of the screen, make it go through to the other side. For example, after stepping on the right edge, the head's x position should be 0, so that it goes to the edge of the left side. Do the same thing for every direction.