ads
@@ -72,7 +72,7 @@ class Scene
72
72
73
73
this.canvas.style = 'position: absolute; left: ' + this.position.x + 'px; top: ' + this.position.y + 'px;'; //todo: only call when changed?
74
74
75
this.canvasContext.fillStyle = "rgb(" + this.backgroundColor.r + "," + GameWindow.backgroundColor.g + "," + GameWindow.backgroundColor.b + ")"; // sets the color to fill in the rectangle with
75
this.canvasContext.fillStyle = "rgb(" + this.backgroundColor.r + "," + this.backgroundColor.g + "," + this.backgroundColor.b + ")"; // sets the color to fill in the rectangle with
76
76
this.canvasContext.fillRect(0, 0, this.size.width, this.size.height);
77
77
78
78
for(var i = 0; i < this.activeObjects.length; i++)
@@ -72,7 +72,7 @@ class Scene72
72
73
this.canvas.style = 'position: absolute; left: ' + this.position.x + 'px; top: ' + this.position.y + 'px;'; //todo: only call when changed?73
this.canvas.style = 'position: absolute; left: ' + this.position.x + 'px; top: ' + this.position.y + 'px;'; //todo: only call when changed?74
74
75
this.canvasContext.fillStyle = "rgb(" + this.backgroundColor.r + "," + GameWindow.backgroundColor.g + "," + GameWindow.backgroundColor.b + ")"; // sets the color to fill in the rectangle with75
this.canvasContext.fillStyle = "rgb(" + this.backgroundColor.r + "," + this.backgroundColor.g + "," + this.backgroundColor.b + ")"; // sets the color to fill in the rectangle with76
this.canvasContext.fillRect(0, 0, this.size.width, this.size.height);76
this.canvasContext.fillRect(0, 0, this.size.width, this.size.height);77
77
78
for(var i = 0; i < this.activeObjects.length; i++)78
for(var i = 0; i < this.activeObjects.length; i++)