windows kompaktibel ;)
This commit is contained in:
parent
2c8eba52e0
commit
a93711908c
2 changed files with 4 additions and 4 deletions
BIN
dvds/dvd-logo.png
Normal file
BIN
dvds/dvd-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
8
main.py
8
main.py
|
@ -28,8 +28,8 @@ clock = pygame.time.Clock()
|
|||
|
||||
working_directory = os.path.dirname(os.path.realpath(__file__))
|
||||
images = []
|
||||
for image in os.listdir(f"{working_directory}/dvds"):
|
||||
images.append(pygame.image.load(f"{working_directory}/dvds/{image}"))
|
||||
for image in os.listdir(f"{working_directory}{os.sep}dvds"):
|
||||
images.append(pygame.image.load(f"{working_directory}{os.sep}dvds{os.sep}{image}"))
|
||||
|
||||
scales = 1
|
||||
speeds = 1
|
||||
|
@ -97,7 +97,7 @@ class DVD():
|
|||
|
||||
|
||||
dvds = []
|
||||
dvds.append(DVD(1,1,"dvds/dvd-logo.png"))#ri(1,10)))
|
||||
dvds.append(DVD(1,1))#ri(1,10)))
|
||||
|
||||
|
||||
def get_debug_text():
|
||||
|
@ -140,7 +140,7 @@ if __name__ == "__main__":
|
|||
if pressed_keys[pygame.K_LEFT] and scales>=0.2:
|
||||
scales -= 0.1
|
||||
if pressed_keys[pygame.K_PLUS] and not preview_pressed_keys[pygame.K_PLUS]:
|
||||
dvds.append(DVD(1,1,"dvds/dvd-logo.png")) #ri(1,30)))
|
||||
dvds.append(DVD(1,1)) #ri(1,30)))
|
||||
if pressed_keys[pygame.K_MINUS] and not preview_pressed_keys[pygame.K_MINUS] and not len(dvds) == 0:
|
||||
dvds.pop(0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue