From 560f82b4d31f414d9c5cbdc85c82c7a09b96116f Mon Sep 17 00:00:00 2001 From: Kevin Tanzosh Date: Mon, 8 Feb 2021 19:35:56 -0500 Subject: [PATCH] Update GameView.java Changed the color from yellow to red, made it a circle, and made the radius 50. --- .../edu/ycp/cs320/movethesquare/ui/GameView.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java b/MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java index 674d86b..0974400 100644 --- a/MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java +++ b/MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java @@ -66,7 +66,7 @@ protected void paintComponent(Graphics g) { // djh2-KEC110-21: changed from GREEN to RED // djh2-YCPlaptop: change from RED to YELLOW - g.setColor(Color.YELLOW); + g.setColor(Color.RED); Square square = model.getSquare(); @@ -81,12 +81,11 @@ public void run() { model.setWidth(640.0); model.setHeight(480.0); - Square square = new Square(); - square.setX(300.0); - square.setY(220.0); - square.setWidth(40.0); - square.setHeight(40.0); - model.setSquare(square); + Cirlce c = new Circle(); + c.setX(300.0); + c.setY(220.0); + c.setRadius(50.0); + model.setSquare(c); GameController controller = new GameController();