71727374757677
private void generateBlocks(int columns, int rows) { blocks = new Block[columns][rows]; for(int c=0; c<columns; c++) for(int r=0; r<rows; r++) blocks[c][r] = new Block(c*blockSize, r*blockSize, blockSize, blockSize); }