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

Display player's score #7

Closed douglascdev closed 4 years ago

douglascdev commented 4 years ago
GhostUser commented 4 years ago

Can I take this?

douglascdev commented 4 years ago

Sure, go ahead!

douglascdev commented 4 years ago

I said you should create a new attribute, but you can actually just use the length of the snake as score, since a new unit is added for each food it eats. It could be less efficient though, so it's up to you.

GhostUser commented 4 years ago

instead of creating a attribute I just added the score feature, but I'll try to put the code in a attribute tomorrow. As rn I think I made the code little ugly.

GhostUser commented 4 years ago

Added the update function. Was working with old main.py. lol

douglascdev commented 4 years ago

Done, thank you for another contribution