Commit 8d8deb0d by BellCodeEditor

save project

parent 7450c077
Showing with 8 additions and 1 deletions
......@@ -11,9 +11,11 @@ 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
pygame.mixer.music.load('test.wav')
s=0.55
click=0
f=0
m=['歌曲一.wav','歌曲二.wav','歌曲三.wav','歌曲四.ogg','test.wav']
k=stop_img
while True:
for event in pygame.event.get():
......@@ -46,6 +48,11 @@ while True:
k=play_img
pygame.mixer.music.pause()
if pygame.mixer.music.get_busy()==False:
f+=1
if f>len(m)-1:
f=0
pygame.mixer.music.load(m[f])
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