xxxxxxxxxx
20
class Tile {
constructor(x, y, w, h, c) {
this.x = x;
this.y = y;
this.w = w;
this.h = h;
this.c = c;
}
display() {
noStroke();
if (this.c == 0) {
fill(255, 0, 0);
} else {
fill(255);
}
rect(this.x, this.y, this.w, this.h);
}
}