xxxxxxxxxx
23
class Snowman{ //create the snowman body
constructor(c, xStart, yStart, speed, size){
this.c = c
this.x = xStart
this.y = yStart
this.speed = speed
this.s = size
}
snowDisplay(){ //display the snowman
noStroke()
fill(this.c)
circle(this.x, this.y, this.s)
}
snowMove(){// move the snowman body into the center
if (this.x != height/2){
this.x += this.speed
}
}
}