xxxxxxxxxx
21
class Bush {
constructor() {
this.img = bush;
this.x = 750;
this.y = 440;
this.size = 100;
this.speed = 2.75;
}
// how the bush moves across the sketch
move() {
this.x -= this.speed;
}
show() {
image(bush, this.x, this.y, this.size, this.size);
// rectMode(CORNER);
// noFill();
// rect(this.x, this.y, this.size, this.size);
}
}