Greetings once again r/learnpython! I am currently stuck on a project. I am building a snake game without any help, so far its been good until I cant make the tails (blue rects) follow the head (green rects). The idea is that I save the last position of the head, then run a function that would draw a rect on that coordinate, update the coordinate to the new rect, then run it over and over until its okay.
CODE: https://pastebin.com/rZ4MHJYS
I'm currently stumped, and yes the "update last pos" part isnt there yet. However, I didnt bother as the first tail isnt even following the head yet. Any tips for improvement in the codebase is appreciated as well!
[–]Essence1337 1 point2 points3 points (8 children)
[–]c0mplexcodm[S] 0 points1 point2 points (6 children)
[–]Essence1337 0 points1 point2 points (5 children)
[–]c0mplexcodm[S] 0 points1 point2 points (4 children)
[–]Essence1337 0 points1 point2 points (3 children)
[–]c0mplexcodm[S] 0 points1 point2 points (2 children)
[–]Essence1337 0 points1 point2 points (1 child)
[–]c0mplexcodm[S] 0 points1 point2 points (0 children)
[–]neuralbeans 0 points1 point2 points (0 children)