Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snake's vertical speed is greater than the horizontal speed #12

Open
saayv1 opened this issue Mar 13, 2019 · 1 comment
Open

Snake's vertical speed is greater than the horizontal speed #12

saayv1 opened this issue Mar 13, 2019 · 1 comment

Comments

@saayv1
Copy link

saayv1 commented Mar 13, 2019

Steps to reproduce the issue :

  1. run $GOPATH/bin/snake-game in the terminal

  2. press up/down arrow keys and the left/right arrow keys and notice the speed.

@TheSchemm
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants