Skip to content

Commit

Permalink
changed from 1000/30 to 1000/45 - sped it up
Browse files Browse the repository at this point in the history
changed from GREEN to RED square
  • Loading branch information
DonaldHakeII committed Mar 2, 2017
1 parent e2dbc21 commit d0a97e2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit d0a97e2

Please sign in to comment.