From e1d464039a96b0eedcb2eed4d8d8dcba6e77f595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Thu, 28 Jul 2022 12:02:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9B=E5=BA=A6=E6=9D=A1?= =?UTF-8?q?=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/constants.py | 1 + source/state/level.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/constants.py b/source/constants.py index 5bd9b05..0c30a19 100755 --- a/source/constants.py +++ b/source/constants.py @@ -58,6 +58,7 @@ RED = (255, 0, 0) PURPLE = (255, 0, 255) GOLD = (255, 215, 0) GREEN = ( 0, 255, 0) +YELLOWGREEN = ( 55, 200, 0) # 退出游戏按钮 EXIT = 'exit' diff --git a/source/state/level.py b/source/state/level.py index d35fbc0..5865aca 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -1475,7 +1475,7 @@ class Level(tool.State): # 常数为预计值 filledBarRect = (self.level_progress_zombie_head_image_rect.x + 3, self.level_progress_bar_image_rect.y + 6, int((150 * self.waveNum) / (self.map_data[c.NUM_FLAGS] * 10)) + 5, 9) # 画填充的进度条 - pg.draw.rect(surface, c.GREEN, filledBarRect) + pg.draw.rect(surface, c.YELLOWGREEN, filledBarRect) # 画旗帜 for i in range(self.numFlags):