Skip to content

Commit

Permalink
Changed square size, color and speed.
Browse files Browse the repository at this point in the history
  • Loading branch information
DonaldHakeII authored and jsnyder17 committed Feb 9, 2021
1 parent d0a97e2 commit 9a56694
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 9a56694

Please sign in to comment.