31 ตุลาคม 2556

void Boy_style


/////// ท่าตี Boy  //////




void Boy_style() {
  if (ten1_Boy>2&&ten1_Boy<5&&ten2_Boy==0||ten1_Boy==0) {
    boy = 2;
  }//กำหนดการแสดงท่าตี boy
  if (boy==1) {
    fill(0);
    ellipse(125, 285, 15, 15);
    Boy_arm1(space, height-25);  
    drawBoyhit(space, height-25);
  }
  else if (boy==2) {
    fill(0);
    ellipse(125, 265, 15, 15);
    Boy_arm1(space, height-25);
    if (speed%ten_Go==0) {
      boy = 3;
    }
    drawBoyhit(space, height-25);
  }
  else if (boy==4) {
    Boy_arm3(space, height-25);
    if (speed%ten_Go==0) {
      boy = 1;
    }
    drawBoyhit(space, height-25);
  }
  else if (boy==3) {
    Boy_arm2(space-10, height-25);
    if (speed%ten_Go==0) {
      boy = 4;
    }
    drawBoyhit(space, height-25);
  }
  else if (boy==5) {
    drawBoyhit(space, height-25);
  }
  else if (boy==6) {
    drawBoy(space, height-25);
  }
  else if (boy==7) {
    drawBoyover(space, height-25);
  }
}

ไม่มีความคิดเห็น:

แสดงความคิดเห็น