11 lines
227 B
JavaScript
11 lines
227 B
JavaScript
|
class Wall {
|
||
|
constructor(ax, ay, bx, by) {
|
||
|
this.a = createVector(ax, ay);
|
||
|
this.b = createVector(bx, by);
|
||
|
}
|
||
|
|
||
|
show() {
|
||
|
stroke(255);
|
||
|
line(this.a.x, this.a.y, this.b.x, this.b.y);
|
||
|
}
|
||
|
}
|