class Camera { static x = 0; static y = 0; static zoom = 1; static setPosition(x, y) { this.x = x; this.y = y; Box.updateAllPositions(); document.getElementById("canvas").style.backgroundPosition = (-Camera.x) + "px " + (-Camera.y) + "px"; } static movePosition(x, y) { this.setPosition(this.x + x, this.y + y); } }