From 94310aa0b87b7c55d64e2498ee6d7d9f0317bc0d Mon Sep 17 00:00:00 2001 From: Looki2000 Date: Sun, 14 May 2023 20:32:08 +0200 Subject: [PATCH] fixed critical error --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 2bc2f6d..136cbc5 100644 --- a/main.py +++ b/main.py @@ -35,9 +35,6 @@ audio = True ################## -if audio: - intro_sound = pygame.mixer.Sound("kurwa.wav") - damping_multiplier = 1 - damping delta_time = 1 / fps @@ -115,12 +112,16 @@ for pixel in pixels_target_pos: # pygame init pygame.init() window = pygame.display.set_mode(window_size) + clock = pygame.time.Clock() # font font = pygame.font.SysFont("Arial", 20) +if audio: + intro_sound = pygame.mixer.Sound("kurwa.wav") + ############# another config stuff ##############