Moving Truck



var drawTree = 150;
var drawTruck = 15;
var truckWheel = 11;
var drawSun = 350;
void draw() {
    background(51, 137, 230);
//Truck(main body)
    stroke(0, 0, 0);
    fill(0, 0, 0);
    rect(drawTruck, 170, 110, 27);
    stroke(43, 43, 43);
    fill(43, 43, 43);
//Wheels
    ellipse(drawTruck + 100, 203,truckWheel,truckWheel);
    ellipse(drawTruck + 10, 203,truckWheel,truckWheel);
    ellipse(drawTruck + 25, 203,truckWheel,truckWheel);
    ellipse(drawTruck + 40, 203,truckWheel,truckWheel);
    ellipse(drawTruck + 55, 203,truckWheel,truckWheel);
    ellipse(drawTruck + 70, 203,truckWheel,truckWheel);
    ellipse(drawTruck + 85, 203,truckWheel,truckWheel);
//Front Rectangle of truck    
    stroke(0, 0, 0);
    fill(0, 0, 0);
    rect(drawTruck + 110, 180, 20, 15);
    fill(255, 255, 255);
    stroke(0, 0, 0);
    rect(drawTruck + 110, 180, 15, 10);
    fill(0, 0, 0);
//Road
    rect(0, 209, 399, 26);
    fill(255, 221, 0);
    //Yellow line things
    rect(29, 214, 82, 14);
    rect(147, 214, 82, 14);
    rect(272, 214, 82, 14);
    stroke(43, 255, 0);
    fill(43, 255, 0);
    //Grass
    rect(0, 235, 400, 165);
    if (mousePressed) {
        drawTruck = -1;
    } else {
        drawTruck = drawTruck +1;
    }
//Sun
    fill(255, 255, 0);
    ellipse(drawSun, 75, 80, 80);
    if (mousePressed) {
        drawSun = 350;
    }
    drawSun = drawSun -0.1;
    fill(255, 0, 0);
    textSize(30);
    text("Click to restart", 100, 350);
    //tree
    fill(79, 24, 24);
    rect(drawTree, 289, 30, 96);
    fill(57, 99, 20);
    noStroke();
    ellipse(drawTree + 16, 256, 91, 85);
    if(drawTruck === 450) {
        drawTruck = -150;
    }
    drawTree = drawTree -1;
    if (mousePressed) {
        drawTree = 84;
    }
    textSize(14);
    text("The truck will come back by itself if you don't press anything",18, 375);
};