xxxxxxxxxx
15
class Walker {
constructor(x, y){
this.pos = createVector(x, y);
this.vel = createVector(1, -1);
}
update(){
this.pos.add(this.vel);
}
show(){
strokeWeight(2);
fill(255,80);
stroke(255);
circle(this.pos.x, this.pos.y,20)
}
}