Commit fca84d80 by BellCodeEditor

save project

parent 12508e5d
Showing with 12 additions and 1 deletions
......@@ -14,7 +14,7 @@ logo_img = pygame.image.load('logo.png') # 下一曲按钮
k=['歌曲1.wav','test.wav']
# 载入音乐
# 载入音乐
#v="C:\Users\Administrator\Desktop\book\books.txt"
volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
......@@ -57,6 +57,17 @@ while True:
e = len(k) - 1
pygame.mixer.music.load(k[e])
pygame.mixer.music.play()
e=0
play_button=stop_img
if x>420 and x<520 and y>350 and y<400:
# 次数增加
e+= 1
if e < 0:
e = len(k) - 1
pygame.mixer.music.load(k[e])
pygame.mixer.music.play()
e=0
play_button=stop_img
pass
if pygame.mixer.music.get_busy() == False:
e+=1
......
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