kjwu_DES-INV-23-Creative-Programming-and-Electronics/Summer 2019/Exercises/Exercise03_ArraysOfObjects/Exercise03_ArraysOfObjects.pde
/*
* exercise of acceleration
*/

Mover[] movers = new Mover[20];

void setup(){
  size(400,400);
  for(int i = 0 ; i < movers.length; i++){
    movers[i] = new Mover();
  }
}

void draw(){
  background(100);
  for(int i = 0 ; i < movers.length; i++){

    movers[i].update();
    movers[i].display();
    movers[i].checkEdges();
  }
}
