diff --git a/src/main/java/Snake/AppleView.java b/src/main/java/Snake/AppleView.java index 947e2e9..59130f4 100644 --- a/src/main/java/Snake/AppleView.java +++ b/src/main/java/Snake/AppleView.java @@ -1,6 +1,8 @@ package Snake; -import java.awt.*; +import java.awt.Point; +import java.awt.Color; +import java.awt.Graphics; public class AppleView implements Drawable { @@ -10,9 +12,7 @@ public class AppleView implements Drawable public AppleView(int size) { - int x = 0; - int y = 0; - position = new Point(x, y); + position = new Point(0, 0); this.size = size; }