Removed unnecessary x = 0 and y = 0

This commit is contained in:
NichtStudioCode 2021-01-27 19:31:09 +01:00
parent 83f1da5ed8
commit 3eb57e9fae
2 changed files with 0 additions and 2 deletions

@ -20,7 +20,6 @@ public class HorizontalSnakeAnimation extends SoundAnimation {
if (left) { if (left) {
if (x <= 0) { if (x <= 0) {
y++; y++;
x = 0;
left = false; left = false;
} else x--; } else x--;
} else { } else {

@ -20,7 +20,6 @@ public class VerticalSnakeAnimation extends SoundAnimation {
if (up) { if (up) {
if (y <= 0) { if (y <= 0) {
x++; x++;
y = 0;
up = false; up = false;
} else y--; } else y--;
} else { } else {