//*************************// // Author:Rich Hauck rdh252@nyu.edu // Notes: Creates Bouncing Ball //*************************// //Create instances Sun mySun; Bouncer myBouncer; void setup() { size(450, 300); myBouncer=new Bouncer(50,50,9,9); mySun = new Sun(0, 0, 30, 10); noStroke(); ellipseMode(CENTER_RADIUS); } void draw() { background(0); mySun.setPos(myBouncer.getXPos(), myBouncer.getYPos()); myBouncer.move(); }