From dc659d1f2596e0bfea377409b8445a0698338493 Mon Sep 17 00:00:00 2001 From: Justin Senn Date: Mon, 6 Feb 2023 17:19:05 +0100 Subject: [PATCH] Update --- src/main/java/Snake/SnakeView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);