class Divisions { constructor(x, y, w, h) { var options = { isStatic: true } this.body = Bodies.rectangle(x, y, w, h, options); this.w = w; this.h = h; World.add(world, this.body); } display() { var pos = this.body.position; rectMode(CENTER); fill("#31251A"); stroke('#31251A'); rect(pos.x, pos.y, this.w, this.h); } };