////Midterm////
String title="Midterm"
String author="Chris Lico"
////Global Data////
int witchX= 9
int witchY= 7

float birdX=11
float birdY=13

float fishX=10
float fishY=8

int octX=6
int octY=4

void setup(){
      background(127,127,255);
      size(700,500);
      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(){
      fill(0,0,0);
      rectMode(CENTER);
      rect(50,50,35,40);
      fill(0,255,0);
      ellipseMode(CENTER);
      ellipse(50-30,50-20,20,25);
      if(witchX>8 && witchY<6);
      //witch will fly from right to left//
}

void bird(){
    fill(45,87,150);
    triangle(4,4,9,7,10,15);
    if(birdX<15 || birdY>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(10,10,10);
    ellipse(200,100,40,40);
}


