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

The snake is able to turn by 180 degree and dies #9

Open
Diranus opened this issue Apr 6, 2019 · 0 comments
Open

The snake is able to turn by 180 degree and dies #9

Diranus opened this issue Apr 6, 2019 · 0 comments

Comments

@Diranus
Copy link

Diranus commented Apr 6, 2019

The title already says it.

How to reproduce (example, works in similar matter for all 4 directions):

  1. Let the snake walk right.
  2. Joystick down
  3. Joystick left BEFORE the snake made his first step downward -> U-Turn -> Running into himself -> Game over
    This can happen if you accidentally pull your joystrick diagonally.

In my opinion, the snake shouldn't accept the joyleft before he made his first step downward.

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

1 participant