From 458d0b0c92a5066ae4e8f4d0cd77cf27d833f47d Mon Sep 17 00:00:00 2001 From: Justin Senn Date: Mon, 6 Feb 2023 17:36:18 +0100 Subject: [PATCH] update --- src/main/java/Snake/AppleView.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/Snake/AppleView.java b/src/main/java/Snake/AppleView.java index 8f35670..2f9d955 100644 --- a/src/main/java/Snake/AppleView.java +++ b/src/main/java/Snake/AppleView.java @@ -1,10 +1,20 @@ package Snake; import java.awt.Graphics; +import java.awt.Point; public class AppleView implements Drawable{ + private final Point position; + private final int size; + public AppleView(int size) + { + int x = 0; + int y = 0; + position = new Point(x, y); + this.size = size; + } @Override public void draw(Graphics g) {