Skip to content

Commit 9a56694

Browse files
DonaldHakeIIjsnyder17
authored andcommitted
Changed square size, color and speed.
1 parent d0a97e2 commit 9a56694

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

MoveTheSquare/src/edu/ycp/cs320/movethesquare/ui/GameView.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ public GameView(Game model) {
2828
setPreferredSize(new Dimension((int) model.getWidth(), (int)model.getHeight()));
2929
setBackground(MIDNIGHT_BLUE);
3030

31-
// djh2-KEC119-21: cahnged from 30 to 45
32-
this.timer = new Timer(1000 / 45, new ActionListener() {
31+
// djh2-KEC119-21: changed from 30 to 45
32+
// djh2-YCPlaptop: change from 45 to 100
33+
this.timer = new Timer(1000 / 100, new ActionListener() {
3334

3435
@Override
3536
public void actionPerformed(ActionEvent e) {
@@ -64,7 +65,8 @@ protected void paintComponent(Graphics g) {
6465
super.paintComponent(g); // paint background
6566

6667
// djh2-KEC110-21: changed from GREEN to RED
67-
g.setColor(Color.RED);
68+
// djh2-YCPlaptop: change from RED to YELLOW
69+
g.setColor(Color.YELLOW);
6870

6971
Square square = model.getSquare();
7072

0 commit comments

Comments
 (0)