Added script that loads images.

This commit is contained in:
The Wobbler 2023-07-19 15:41:22 +02:00
parent 3a7faee6f6
commit 3aa2bf1131

View file

@ -12,10 +12,14 @@ pygame.display.set_caption("Screensaver")
gray = (20, 20, 20)
red = (255, 20, 20)
working_directory = os.path.abspath(__file__)
working_directory = os.path.dirname(os.path.realpath(__file__))
file_path = os.path.abspath(__file__)
wobblers = []
max_wobbler_size = 50
images = []
for image in os.listdir(f"{working_directory}/textures"):
images.append(pygame.image.load(f"{working_directory}/textures/{image}"))
clock = pygame.time.Clock()
running = True