Moving Target



var drawStarX = 375;
var drawStarY = 25;
var drawPerson = 200;
void draw() {
    background(0, 0, 0);
    fill(255, 191, 0);
    ellipse(drawStarX, drawStarY, 100, 100);
    noStroke();
    fill(0, 123, 255);
    //legs
    rect(drawPerson - 31, 308, 25, 90);
    rect(drawPerson + 5, 308, 25, 90);
    fill(255, 246, 127);
    stroke(0, 0, 0);
    ellipse(drawPerson, 200, 80, 80);//head
    fill(0, 0, 0);
    stroke(43, 41, 41);
    rect(drawPerson - 6, 141, 11, 32);//hair
    fill(255, 105, 105);
    noStroke();
    rect(drawPerson - 20, 214, 38, 14);//mouth
    fill(0, 123, 255);
    noStroke();
    rect(drawPerson - 37, 232, 75, 80);//body
    fill(0, 123, 255);
    //arms
    rect(drawPerson - 119, 239, 90, 25);
    rect(drawPerson + 31, 235, 90, 25);
    //eyes
    fill(255, 255, 255);
    ellipse(drawPerson - 19, 194, 20, 20);
    ellipse(drawPerson + 19, 194, 20, 20);
    fill(0, 0, 0);
    ellipse(drawPerson + 17, 194, 10, 10);
    ellipse(drawPerson - 17, 194, 10, 10);
    stroke(0, 0, 0);
    fill(0, 21, 255);
    ellipse(mouseX, 0, 30, 30);
    ellipse(mouseX, 400, 30, 30);
    ellipse(0, mouseY, 30, 30);
    ellipse(400, mouseY, 30, 30);
    fill(255, 255, 255);
    ellipse(mouseX, mouseY, 40, 40);
    fill(255, 0, 0);
    ellipse(mouseX, mouseY, 20, 20);
    if(mousePressed) {
        ellipse(mouseX, mouseY, 40, 40);
    }
     drawStarX = drawStarX -1;
     drawStarY = drawStarY +1;
     if(mousePressed) {
         drawStarX = 375;
         drawStarY = 25;
     }
     textSize(20);
    text("Click to Restart", 253, 386);
    drawPerson += 2;
    if (drawPerson > 400) {
        drawPerson = 0;
    }
};