diff --git a/resources/sound/helpScreen.ogg b/resources/sound/helpScreen.ogg new file mode 100755 index 0000000..e39e6ab Binary files /dev/null and b/resources/sound/helpScreen.ogg differ diff --git a/source/constants.py b/source/constants.py index 9c60fb2..987710d 100755 --- a/source/constants.py +++ b/source/constants.py @@ -660,6 +660,7 @@ def _getSound(filename): # 所有音效的元组,用一波海象算子表达(>= python 3.8),免得要维护两个 SOUNDS = ( # 程序交互等 SOUND_TAPPING_CARD := _getSound("tap.ogg"), + SOUND_HELP_SCREEN := _getSound("helpScreen.ogg"), # 植物 SOUND_FIREPEA_EXPLODE := _getSound("firepea.ogg"), SOUND_BULLET_EXPLODE := _getSound("bulletExplode.ogg"), diff --git a/source/state/screen.py b/source/state/screen.py index 4a6e873..6837c0c 100644 --- a/source/state/screen.py +++ b/source/state/screen.py @@ -223,6 +223,7 @@ class HelpScreen(tool.State): self.setupImage() pg.display.set_caption("pypvz: 帮助") pg.mixer.music.stop() + c.SOUND_HELP_SCREEN.play() def setupImage(self): # 主体