Commit 6fa54f24 by BellCodeEditor

save project

parent cfe6ef23
Showing with 4 additions and 4 deletions
......@@ -59,19 +59,19 @@ while True:
pygame.mixer.music.pause()
if x>120 and x<220 and y>350 and y<400:
num-=1
if num<0:
if num < 0:
num = len(fil_music)-1
pygame.midi.music.load(path+"//"+fil_music[num])
pygame.mixer.music.load(path+"\\"+fil_music[num])
pygame.mixer.music.play()
click = 0
play_button = stop_img
if pygame.mixer.music.get_busy() == False:
num+=1
if num > len(fil_music)-1:
num = 0
pygame.mixer.music.load(fil_music[num])
pygame.mixer.music.load(path+"\\"+fil_music[num])
pygame.mixer.music.play()
play_button = stop_img
# 绘制画面
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