Fixed a horrible bug that happened when moving layers

This commit is contained in:
unsettledgames
2020-06-20 23:50:57 +02:00
parent d9d1406d57
commit 349a4417d8
3 changed files with 20 additions and 30 deletions

View File

@@ -10,9 +10,6 @@ function fillCheckerboard() {
var context = checkerBoard.context;
context.clearRect(0, 0, canvasSize[0], canvasSize[1]);
console.log(canvasSize);
console.log(checkerBoardSquareSize);
// Cycling through the canvas (using it as a matrix)
for (var i=0; i<canvasSize[0] / checkerBoardSquareSize; i++) {
nSquaresFilled = 0;