Commit 0e6255dc by BellCodeEditor

save project

parent 24409681
Showing with 1 additions and 1 deletions
...@@ -54,6 +54,7 @@ while True: ...@@ -54,6 +54,7 @@ while True:
else: else:
play_button = play_img play_button = play_img
pygame.mixer.music.pause() pygame.mixer.music.pause()
xuanzhuan+=1
if x>120 and x<220 and y >350 and y<400:# 上一首 if x>120 and x<220 and y >350 and y<400:# 上一首
number-=1 number-=1
if number<0: if number<0:
...@@ -73,7 +74,6 @@ while True: ...@@ -73,7 +74,6 @@ while True:
pygame.mixer.music.unpause() pygame.mixer.music.unpause()
click=0 click=0
if pygame.mixer.music.get_busy() == False:# 循环播放 if pygame.mixer.music.get_busy() == False:# 循环播放
number+=1
if number>len(music_list)-1: if number>len(music_list)-1:
number=0 number=0
pygame.mixer.music.load(music_list[number]) pygame.mixer.music.load(music_list[number])
......
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