Skip to content

Commit

Permalink
DJH2: Changed speed from 45 to 100
Browse files Browse the repository at this point in the history
DJH2: Changed square color from RED to YELLOW
  • Loading branch information
DonaldHakeII committed Mar 5, 2017
1 parent d0a97e2 commit 6b62b7e
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 6b62b7e

Please sign in to comment.