Modify a text file: $/Project_1.pde
$/Project_1.pde
//Nnikia Phillips //Project 1 //shoe steps on and over a bug float x,y; float bugX, bugY; //SETUP: Define screen size, set mode void setup() { size(600,800); // Reset: // Start the shoe at the right of the screen bugX= width/1; bugY= 10; } //Draw: shoe, sidewalk, sky void draw() { //SCENE: sky, sidewalk background(010,210,260); //Sky fill(153,153,153); ellipse(bugX,bugY, 40,40); //Bug rect(000,400,600,400); //Sidewalk //ACTION: bug moves across screen, reset to the left if (bugX>width){ bugX=0; } bugX= bugX + 1; //Show: Shoe follows mouse fill(0,200,0); rect(mouseX,mouseY,60,070); //Shoe ellipse(mouseX+30,mouseY-30,60,60); //Messages fill(0); text("Dynamic Sketch Example", width/4, 10); text("Shoe steps on a bug.", width/4, 20); text("Nnikia Phillips/Dynamic1.java",16, height-10); }