Modify a text file: $/x226Blanco.pde
$/x226Blanco.pde
// Project 1, Ray Blanco String title= "Project 1"; String author= "Ray Blanco"; //variable setup float horizon; float randyx, randyy; //hero position float randyxspeed, randyyspeed; float buddyx, buddyy; //dog position float buddyxspeed, buddyyspeed; float sunx, suny; float treex , treey; float housex = 100, housey=150,housew=150,househ=85; float fast = 1; //setup the scene void setup() { size(700,500); horizon = height/3; reset(); } void reset(){ randyhome(); //hero start buddyhome(); //dog start } void randyhome(){ //hero start randyx = width/3; randyy = housey+50; randyxspeed= 3; randyyspeed= 2; } void buddyhome(){ //dog start buddyx = width/3; buddyy = height*0.75; } void draw(){ // drawing objects scene(); action(); show(); messages(); } //Drawing the actual scene void scene(){ background (200,220,250); //light blue sky fill(0,255,0); rect(0,horizon,width,height-horizon); //green grass house(); } void house(){ fill(255,0,0);//red rect(housex,housey,housew,househ); } void action(){ //bouncing if (randyx>width-40 || randyx<40){ randyxspeed=-randyxspeed; } if (randyy>70 || randyy