Oct-02-2019, 10:08 AM
I would put the food as a class as well, as that would pull some of that logic out of the main game loop, shortening it even more. And of course im not big on the multiple game states with while loops. But overall, your code is much more easier on the eyes and has some sanity.
Recommended Tutorials: