|
I am trying to make an array of rectangles on the screen. 8 columns wide and 4 rows tall. It is only drawing 1 row. Here is my code:
//while loops for making hte block array
while (row < 4)
{
while (col < 8)
{
let block = Block.new(15+(60*col), 10+(30*row), 60);
let col = col + 1;
}
let row = row + 1;
}
return this;
Please help
|