/* Professor, I am really lost, and this should not come to you as a surprise, as I have, on many occasions expressed my confusion. I cannot grasp the concept of some of the functions. I get it when someone asks me a question, but to implement the steps in a manner to be readible is proving to be a difficult task for me. I have pulled my hair out this past week worrying that I must just be a moron. However, that is not the case. Please understand that I am willing to do what I can to pass, but I have found your class to be very hard to follow. I am not going to give up, but, sadly I am afraid that I will not acheive the level of understanding you are asking for me to have already absorbed. Please talk with me after class on Monday 3/24/14. -Jennifer Blomberg- */ //java// float left=25; float top=25; float bottom=475; float right=475; float center=250; float ballX=250, ballY=250; float ballDX=3, ballDY=2; float jenniferX, jenniferY, jenniferDX = 3, jenniferDY = 2; void setup(){ size(500,500); fill(255); reset(); } void reset() { } void draw() { //// Next frame. //// scene(); action(); jennifer(); } void scene() { background(0); court(); line(250,0,250,500); } void court() { rectMode(CORNERS); rect (25,25,475,475); fill(225,10,200); stroke(255); strokeWeight(10); } void action() { ball(); collisions(); } void ball() { // move & draw // having trouble w/ the if statement ballX += ballDX; ballY += ballDY; ellipseMode(CENTER); ellipse (ballX,ballY,10,10); } void jennifer() { // jennifer's body // jenniferDX = mouseX - jenniferX; jenniferX = jenniferX + jenniferDX; jenniferDY = mouseY - jenniferY; jenniferY = jenniferY + jenniferDY; rectMode(CENTER); strokeWeight(5); rect(350,300, 50, 100); // jennifer's head // ellipseMode(CENTER); strokeWeight(5); ellipse(350,300-65, 25,25); fill(0,0,255); smooth(); } /* trying to figure out collisions - for below*/ void collisions() { //// Check crashing //++++++++++++ }