function love.load() love.graphics.setBackgroundColor(255, 255, 255) gridXCount = 10 gridYCount = 18 inert = {} for y = 1, gridYCount do inert[y] = {} for x = 1, gridXCount do inert[y][x] = ' ' end end end function love.draw() for y = 1, gridYCount do for x = 1, gridXCount do love.graphics.setColor(.87, .87, .87) local blockSize = 20 local blockDrawSize = blockSize - 1 love.graphics.rectangle( 'fill', (x - 1) * blockSize, (y - 1) * blockSize, blockDrawSize, blockDrawSize ) end end end