From a138adc31bba41ad8c1d89a0af35862a95b042c1 Mon Sep 17 00:00:00 2001 From: Looki2000 Date: Sun, 14 May 2023 20:30:03 +0200 Subject: [PATCH] changed audio to pygame --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 8fa26d5..2bc2f6d 100644 --- a/main.py +++ b/main.py @@ -36,7 +36,7 @@ audio = True ################## if audio: - import playsound + intro_sound = pygame.mixer.Sound("kurwa.wav") damping_multiplier = 1 - damping @@ -227,7 +227,7 @@ while True: continue if audio: - playsound.playsound("prototype_sound.wav", False) + pygame.mixer.Sound.play(intro_sound) audio = False ## simulation (take delta_time into account)