Commit fa888297 by BellCodeEditor

save project

parent a474d651
Showing with 2 additions and 2 deletions
...@@ -21,7 +21,7 @@ for i in f: ...@@ -21,7 +21,7 @@ for i in f:
m.append(i) m.append(i)
n=-1 n = -1
volume = 0.2 volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量 pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0 click = 0
...@@ -62,7 +62,7 @@ while True: ...@@ -62,7 +62,7 @@ while True:
n+=1 n+=1
if n>len(m)-1: if n>len(m)-1:
n=0 n=0
pygame.mixer.music.load(p="\\"+m[n]) # 载入音乐 pygame.mixer.music.load(p+"\\"+m[n]) # 载入音乐
pygame.mixer.music.play() pygame.mixer.music.play()
# 绘制画面 # 绘制画面
......
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