修改进度条颜色

This commit is contained in:
星外之神 2022-07-28 12:02:33 +08:00
parent 26cc7a083c
commit e1d464039a
2 changed files with 2 additions and 1 deletions

View File

@ -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'

View File

@ -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):