From 428f57fac14d46cedcd9956ca6388fb1ac0dbc2e Mon Sep 17 00:00:00 2001 From: wszqkzqk Date: Fri, 29 Jul 2022 20:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=9C=E5=88=A9=E7=95=8C=E9=9D=A2=E9=9F=B3?= =?UTF-8?q?=E4=B9=90=E8=AE=BE=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/state/screen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/state/screen.py b/source/state/screen.py index 843efef..6b9ca3a 100644 --- a/source/state/screen.py +++ b/source/state/screen.py @@ -72,8 +72,10 @@ class GameVictoryScreen(Screen): self.game_info = persist self.setupImage(self.image_name) pg.display.set_caption("pypvz: 战斗胜利!") - # 停止播放原来关卡中的音乐 pg.mixer.music.stop() + pg.mixer.music.load(os.path.join(c.PATH_MUSIC_DIR, "zenGarden.opus")) + pg.mixer.music.play(-1, 0) + pg.mixer.music.set_volume(self.game_info[c.SOUND_VOLUME]) class GameLoseScreen(Screen): def __init__(self):