mikk499n_Programmering-C-Mikkel-Dall/AALIEN/AALIEN.pde
int x=0;
int y=0;

void setup(){
  size (600,600);
  noLoop();
}

void draw(){
  // Laver rammerne
  frameFunction(0,0);
  frameFunction(300,0);

  frameFunction(0,300);
  frameFunction(300,300);

  //Deler Skærmen i 4
  line(300,0,300,600);
  line (0,300,600,300);

  hoved(x,y);
  krop(x,y);
  ben(x,y);
  skrift(x+270,y);

  hoved(x+300,y);
  krop(x+300,y);
  ben(x+300,y);
  skrift(x-30,y);

  hoved(x,y+300);
  krop(x,y+300);
  ben(x,y+300);
  skrift(x-30,y+300);

  hoved(x+300,y+300);
  krop(x+300,y+300);
  ben(x+300,y+300);
  skrift(x+270,y+300);

}



void frameFunction(int x, int y ){
  rect(10+x,10+y,280,280);
}

void hoved(int x,int y){
  // laver hoved
  fill(255,255,255);
  circle(150+x,75+y,100);

  // laver øjnene 
  fill(0,0,0);
  ellipse(125+x, 75+y, 35, 50);
  ellipse(175+x, 75+y, 35, 50);
}

void krop(int x,int y){
  //kroppens farve og krop
  fill(0,0,0);
  rect(125+x,120+y,50,100);
}
void ben(int x,int y){
  //Laver benene
  strokeWeight(5);
  line(125+x,220+y,110+x,250+y);
  line(175+x,220+y,195+x,250+y);
  strokeWeight(1);
}

void skrift(int x, int y){
  textSize(32);
  text("Alien", 120+x, 270+y);
}
