Skip to content
Snippets Groups Projects
Commit 8988bfa6 authored by Fabian Heinrich's avatar Fabian Heinrich
Browse files

Adjusted time of color change

parent 015909d7
No related branches found
No related tags found
1 merge request!91Resolve "Score green or red when changed"
Pipeline #49337 passed
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment