if(i%25==0):
obstacle_add=int(random.randint(210,690))
obstacle_list_ycord.append(obstacle_add)
obstacle_list_xcord.append(1466)
i=0
for obstacle_index in range (10):
pygame.draw.rect(win,(255,0,0),(obstacle_list_xcord[obstacle_index]-50,obstacle_list_ycord[obstacle_index],4,20))
pygame.display.flip()
obstacle_list_ycord.pop(0)
obstacle_list_xcord.pop(0)
i=i+1
draw_obj()
I'm unable to see any objects being made on my fullscreen pygame module with no signs of errors in the shell.
This code is just a part of my 300 line putting which will make confusions. and the above code is already present in a loop so that is not the place of error.