From d0a97e223cb35c8259cf866a516105c13d4333f5 Mon Sep 17 00:00:00 2001 From: Don Hake Date: Thu, 2 Mar 2017 17:44:14 -0500 Subject: [PATCH] changed from 1000/30 to 1000/45 - sped it up changed from GREEN to RED square --- .../src/edu/ycp/cs320/movethesquare/ui/GameView.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java b/MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java index 0e975cd..4f8a7a7 100644 --- a/MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java +++ b/MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java @@ -28,7 +28,8 @@ public GameView(Game model) { setPreferredSize(new Dimension((int) model.getWidth(), (int)model.getHeight())); setBackground(MIDNIGHT_BLUE); - this.timer = new Timer(1000 / 30, new ActionListener() { + // djh2-KEC119-21: cahnged from 30 to 45 + this.timer = new Timer(1000 / 45, new ActionListener() { @Override public void actionPerformed(ActionEvent e) { @@ -62,7 +63,8 @@ protected void handleTimerTick() { protected void paintComponent(Graphics g) { super.paintComponent(g); // paint background - g.setColor(Color.GREEN); + // djh2-KEC110-21: changed from GREEN to RED + g.setColor(Color.RED); Square square = model.getSquare();