Hi, im making a game where i have to position a lot of pictures in a window that have the same distance between them and so it looks straight, but i dont know the best way of doing it.
this is the code im currently using, which is annoying to use:
firstpos = [scw_x + case_image_width//3, scw_y + case_image_height//2]
secondpos = [firstpos[0] + case_image_width*1.5, firstpos[1]]
thirdpos = [secondpos[0] + case_image_width*1.5, firstpos[1]]
fourthpos = [thirdpos[0] + case_image_width*1.5, firstpos[1]]
fithpos = [fourthpos[0] + case_image_width*1.5, firstpos[1]]
sixthpos = [firstpos[0], firstpos[1] + case_image_height + case_image_height//2]
seventhpos = [secondpos[0], sixthpos[1]]
eigthpos = [thirdpos[0], sixthpos[1]]
ninthpos = [fourthpos[0], sixthpos[1]]
tenthpos = [fithpos[0], sixthpos[1]]
but the items on the screen gets misplaced for some reason