EmilieLS_cart253/Exercises/exercise03/exercise03.pde
/* */
//declaring objects
//declared variable backgroundColor that has a pinkish color
color backgroundColor = color(200,150,150);
//declared variable type Bouncer and called it bouncer. The object is bouncer.
Bouncer bouncer;
//declared a variable type Bouncer and called it bouncer2. The object is bouncer2. Both objects have the same type.
Bouncer bouncer2;

//initializing objects
void setup() {
  size(640,480);
  background(backgroundColor);
  //this is where we are creating the object ouncer iself. It's like the setup() function but it's used to create an individual object. A new bouncer is created from the class bouncer.
  bouncer = new Bouncer(width/2,height/2,2,2,50,color(150,0,0,50),color(255,0,0,50));
  bouncer2 = new Bouncer(width/2,height/2,-2,2,50,color(0,0,150,50),color(0,0,255,50));
}
//call methods on the objects
void draw() {
  /* declared the bouncer's methods */
  //declared the update method for bouncer object. updates the bouncer each freame
  bouncer.update();
  //declared the update method for bouncer2 variable
  bouncer2.update();
  //declared the draw method for boucer variable
  bouncer.draw();
  //declared the draw method for bouncer2 variable
  bouncer2.draw();
}