BlueGit

timfa frameworkv3

ads

timfa Tim · pushed by timfa

Authored 2022-10-15 · 4 years ago

Hash
10ac33308a1350f855e2cdafde1d3e60514db503
Parent
e719f4ca
1 file changed +1 −1
framework/engine/scene.js +1 −1
@@ -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 Scene
72
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 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 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++)