Commit 4b9257b1 by BellCodeEditor

save project

parent 9c9c2d8e
Showing with 7 additions and 2 deletions
...@@ -14,9 +14,14 @@ logo_img = pygame.image.load('logo.png') # 中间logo ...@@ -14,9 +14,14 @@ logo_img = pygame.image.load('logo.png') # 中间logo
#载入列表 #载入列表
music_list = ["歌曲1.wav","歌曲2.wav","歌曲3.wav","歌曲4.ogg"] #music_list = ["歌曲1.wav","歌曲2.wav","歌曲3.wav","歌曲4.ogg"]
music_list = [""]
num = -1 num = -1
path = "C:\\Users\\Administrator\\Desktop"
filelist = os.listdir(path)
for i in filelist:
if i[-4:] == ".wav" or i[-4] == ".ogg":
music_list.append
volume=0.2 volume=0.2
pygame.mixer.music.set_volume(volume) pygame.mixer.music.set_volume(volume)
click=0 click=0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment