xxxxxxxxxx
26
class Cursor {
constructor() {
this.x = 10;
this.y = 10;
}
update() {
}
move(x, y) {
this.x += x;
this.y += y;
}
display() {
push();
fill(0);
rect(this.x*20+5, this.y*20+5, 12);
pop();
}
}