Added script that loads images.
This commit is contained in:
parent
3a7faee6f6
commit
3aa2bf1131
1 changed files with 5 additions and 1 deletions
|
@ -12,10 +12,14 @@ pygame.display.set_caption("Screensaver")
|
||||||
gray = (20, 20, 20)
|
gray = (20, 20, 20)
|
||||||
red = (255, 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 = []
|
wobblers = []
|
||||||
max_wobbler_size = 50
|
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()
|
clock = pygame.time.Clock()
|
||||||
|
|
||||||
running = True
|
running = True
|
||||||
|
|
Loading…
Reference in a new issue