Commit 50a0c046 by BellCodeEditor

save project

parent 72fe4dfb
Showing with 4 additions and 1 deletions
...@@ -13,7 +13,8 @@ next_img = pygame.image.load('next.png') # 下一曲按钮 ...@@ -13,7 +13,8 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮 logo_img = pygame.image.load('logo.png') # 下一曲按钮
pygame.mixer.music.load('歌曲4.ogg') # 载入音乐 pygame.mixer.music.load('歌曲4.ogg') # 载入音乐
musiclist=["1.wav","2.wav","3.wav","4.ogg"]
num=-1
click=0 click=0
play_button=stop_img play_button=stop_img
...@@ -47,6 +48,8 @@ while True: ...@@ -47,6 +48,8 @@ while True:
pygame.mixer.music.pause() pygame.mixer.music.pause()
play_button=play_img play_button=play_img
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num+=1
if num>
pygame.mixer.music.play() pygame.mixer.music.play()
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0,0)) # 填充背景 screen.blit(bg_img, (0,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