snake-game
snake-game copied to clipboard
Snake's vertical speed is greater than the horizontal speed
Steps to reproduce the issue :
-
run $GOPATH/bin/snake-game in the terminal
-
press up/down arrow keys and the left/right arrow keys and notice the speed.
This seems to be solely because of rectangular aspect ratio of each grid space, which is really just a colored space. The speed of the snake is in characters per second, and seeing as the height of a character block is greater than the width of a block, the snakes movement is greater in the Y direction when measured by pixels on the screen.