From 6b62b7ede9947ea4bb02bfda462754fdce56cdaa Mon Sep 17 00:00:00 2001 From: DonaldHakeII Date: Sun, 5 Mar 2017 18:52:57 -0500 Subject: [PATCH] DJH2: Changed speed from 45 to 100 DJH2: Changed square color from RED to YELLOW --- .../src/edu/ycp/cs320/movethesquare/ui/GameView.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java b/MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java index 4f8a7a7..674d86b 100644 --- a/MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java +++ b/MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java @@ -28,8 +28,9 @@ public GameView(Game model) { setPreferredSize(new Dimension((int) model.getWidth(), (int)model.getHeight())); setBackground(MIDNIGHT_BLUE); - // djh2-KEC119-21: cahnged from 30 to 45 - this.timer = new Timer(1000 / 45, new ActionListener() { + // djh2-KEC119-21: changed from 30 to 45 + // djh2-YCPlaptop: change from 45 to 100 + this.timer = new Timer(1000 / 100, new ActionListener() { @Override public void actionPerformed(ActionEvent e) { @@ -64,7 +65,8 @@ protected void paintComponent(Graphics g) { super.paintComponent(g); // paint background // djh2-KEC110-21: changed from GREEN to RED - g.setColor(Color.RED); + // djh2-YCPlaptop: change from RED to YELLOW + g.setColor(Color.YELLOW); Square square = model.getSquare();