diff --git a/sketch.js b/sketch.js index 579c1b7..4f797f2 100644 --- a/sketch.js +++ b/sketch.js @@ -51,7 +51,7 @@ function draw() { for (let j = 0; j < gameHeight; j++) { column.push(null); } - deadBlocksMatrix.push(column); + deadBlocksMatrix[i]=column; } deadBlocks = []; currentShape = new Shape(getRandomShapeID(), createVector(floor(random(1, gameWidth - 2)), 0)); @@ -85,4 +85,4 @@ function drawGrid() { line(0, j * BLOCK_SIZE, canvas.width, j * BLOCK_SIZE); } pop(); -} \ No newline at end of file +}