////Midterm//// String title="Midterm"; String author="Chris Lico"; ////Global Data//// int witchX; int witchY; int witchDX= -6; float birdX=11; float birdY=13; float fishX=10; float fishY=8; int octX=6; int octY=4; void setup(){ size(700,500); witchX= width-50; witchY= height/6; } void draw() { //// Draw the frame background(200,200,255); fill( 100,200,150 ); rectMode(CORNERS); rect( 0,height/2, width,height); // witch(); bird(); fish(); octopus(); moon(); fill(0,0,255); text("Midterm", height-20,25); fill(255,0,0); text("Chris Lico",width-10,15); } void witch(){ // Move witch if(witchX>8 && witchY10) { rect( birdX, birdY, 20,10 ); } //bird will fly from left to right// } void fish(){ fill(90,150,230); // ??fish one// triangle(160,145,20,30,12,14); fill(200,170,30); // ??fish two// triangle(150,145,30,30,15,20); fill(20,220,78); // ??fish three// triangle(140,140,30,30,20,20); } void octopus(){ fill(120,140,210); ellipseMode(CENTER); ellipse(150,130,10,15); if(octX>=3 && octY< height-5); //octopus will move up and down// else if(octX<7 || octY>width/2); //octopus will move where fishes are// } void moon(){ fill(170,60,50); ellipse(200,100,40,40); }