From a33806e32ab8fe2fa131da9b6cade54cc3910baf Mon Sep 17 00:00:00 2001 From: tonywesoly Date: Wed, 11 May 2022 13:14:27 +0200 Subject: [PATCH] =?UTF-8?q?Zwi=C4=99kszenie=20kontrastu=20kolor=C3=B3w=20i?= =?UTF-8?q?=20lekkie=20czyszczenie=20kodu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Environment.py | 2 +- Program.py | 2 +- Types_colors.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Environment.py b/Environment.py index 972ffa5..0a957c3 100644 --- a/Environment.py +++ b/Environment.py @@ -41,7 +41,7 @@ class Environment: # self.astar.draw_path(self.window) pygame.display.flip() - def update_all_elements(self,event): + def update_all_elements(self): self.use_astar() # wywyoływanie za każdym razem astar jest bardzo zasobożerne. Lepiej raz na przejście self.update_truck() time.sleep(0.5) diff --git a/Program.py b/Program.py index a582b73..9ee68bc 100644 --- a/Program.py +++ b/Program.py @@ -17,5 +17,5 @@ class Program: for event in pygame.event.get(): # integrating with keyboard if event.type == QUIT: running = False - self.environment.update_all_elements(event) + self.environment.update_all_elements() self.environment.draw_all_elements() diff --git a/Types_colors.py b/Types_colors.py index d01063d..8c75d39 100644 --- a/Types_colors.py +++ b/Types_colors.py @@ -15,7 +15,7 @@ class Types_colors(object): def get_shelf_color(shelf_type): color = (143, 68, 33) if shelf_type == Package_types.fragile: - color = (191, 35, 15) + color = (141, 35, 15) elif shelf_type == Package_types.priority: - color = (33, 46, 140) + color = (33, 46, 100) return color \ No newline at end of file