My code:
int blockspace = 3;
int blockx = 0;
int blocky = HEIGHT/4;
for (int i = 0; i < ROWS; i++){
for (int j = 0; j < COLS; j++)
{
GRect block = newGRect(blockspace/2 + blockx, 0 + blocky, 40 - blockspace, 10 - blockspace);
//adds block stuff..
}
blocky = blocky + 20;
}
Like the columns work perfectly, but the rows do not print!!! What is wrong with this, I see no errors! It complies and etc... (sorry about the formatting...)