diff --git a/src/main/java/Snake/SnakeView.java b/src/main/java/Snake/SnakeView.java index 814b254..eadae9d 100644 --- a/src/main/java/Snake/SnakeView.java +++ b/src/main/java/Snake/SnakeView.java @@ -1,6 +1,7 @@ package Snake; import java.awt.*; +import java.awt.Point; import java.util.ArrayList; public class SnakeView implements Drawable{ @@ -30,7 +31,7 @@ public class SnakeView implements Drawable{ public void draw(Graphics g) { g.setColor(Color.GREEN); -// g.fillRect((int)positions.get(0).getX(), +// g.fillRect((int)positions.get(0).getX(), // (int)positions.get(0).getY(), cellSize, cellSize); g.fillOval((int)positions.get(0).getX(), (int)positions.get(0).getY(), cellSize, cellSize); @@ -39,7 +40,7 @@ public class SnakeView implements Drawable{ for(int i = 1; i < positions.size(); ++i) { // g.fillRect((int)positions.get(i).getX(), -// (int)positions.get(i).getY(), cellSize, cellSize); +// (int)positions.get(i).getY(), cellSize, cellSize); g.fillOval((int)positions.get(i).getX(), (int)positions.get(i).getY(), cellSize, cellSize);