diff --git a/CHANGELOG.md b/CHANGELOG.md index c62dca6a65b6a2b0fa8c9cfcfb66f64bd68aa6b5..1cfacd4d945ac7f271a9e9541ab044d76b7ec37f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ - Pathfinding in random agent - Level layouts from 2d-grid-overcooked-literature - Caching of graph recipe layouts +- Score label changes color when score changes ### Changed diff --git a/cooperative_cuisine/pygame_2d_vis/gui.py b/cooperative_cuisine/pygame_2d_vis/gui.py index 0b4e18cb69d268c6a7a80cc0a0060ff53cb7924d..f6e9ca14e3d6935924bec49c7a5378da359d547e 100644 --- a/cooperative_cuisine/pygame_2d_vis/gui.py +++ b/cooperative_cuisine/pygame_2d_vis/gui.py @@ -1432,7 +1432,7 @@ class PyGameGUI: if self.switch_score_color: self.count_frames_score_label += 1 - duration_color_change = 30 + duration_color_change = 40 if score > self.last_score: self.score_label.update_theming('{"colours": {"normal_text": "#00FF00"}}') self.count_frames_score_label = 0