When you have only 2 obstacles, not necessary
For example one array shows the x values for all obstacles
x[0] = 400;
then for loop over the array for loop i
rect… x[i]
See reference section array
When you have only 2 obstacles, not necessary
For example one array shows the x values for all obstacles
x[0] = 400;
then for loop over the array for loop i
rect… x[i]
See reference section array