]> Skullheadx's Git Forge - Pygame-Jam.git/commitdiff
healthbar brightness fix
author711215 <711215@pdsb.net>
Wed, 13 Jul 2022 19:30:26 +0000 (15:30 -0400)
committer711215 <711215@pdsb.net>
Wed, 13 Jul 2022 19:30:26 +0000 (15:30 -0400)
UI/HealthBar.py

index 4c1103411b8c30290436d17887c18bdf61aa42c4..dc26ac820d2e7c05610e8736f88e0eeeda11c40e 100644 (file)
@@ -52,9 +52,9 @@ class BossHealthBar:
         return;
         
     def update(self):
-        if self.color_change == 0 and self.bar_color[1] != 255:
+        if self.color_change == 0 and self.bar_color[1] != 180:
             self.bar_color[1] = self.bar_color[1] + 1
-            if self.bar_color[1] == 255:
+            if self.bar_color[1] == 180:
                 self.color_change = 1
         elif self.color_change == 1 and self.bar_color[1] != 0:
             self.bar_color[1] -= 1