Zwiększenie kontrastu kolorów i lekkie czyszczenie kodu
This commit is contained in:
parent
56314605ac
commit
a33806e32a
@ -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)
|
||||
|
@ -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()
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user