Commit 54485995 by BellCodeEditor

save project

parent e0fb3c9c
Showing with 12 additions and 2 deletions
......@@ -10,10 +10,11 @@ play_img = pygame.image.load('play.png') # 播放按钮
stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮rt
rt=['1.wav','2.wav','3.wav','4.ogg']
h=-1
volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
......@@ -51,6 +52,15 @@ while True:
pygame.mixer.music.pause()
if pygame.mixer.music.get_busy() == False:
h+=1
if h>len(rt)-1:
h=0
pygame.mixer.music.load(rt[h])
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