Although this is C# code, we can still make use of this. If the key is pressed OR when the snake direction is one of four directions, update the sprite direction. Instead of having two different functions handle this.
I've decided I wont fix this. It might be more efficient, but with the way Pyglet handles key presses, the code will likely turn very ugly. If I get an idea I will reopen the issue, but for now I won't fix.
While I was learning to use Unity, I found a way to make a slightly better move function. See this:
Although this is C# code, we can still make use of this. If the key is pressed OR when the snake direction is one of four directions, update the sprite direction. Instead of having two different functions handle this.