Commit 4e7a09a3 by BellCodeEditor

save project

parent a4cdd2d9
Showing with 24 additions and 0 deletions
......@@ -63,6 +63,30 @@ while True:
play_button = play_img
pygame.mixer.music.pause()
# 次数增加
if x>120 and x<220 and y>350 and y<400:
mun-= 1
if mun< 0:
mun=len(m)-1
pygame.mixer.music.load('C:\\Users\\pc\\Documents\\pygame_lesson5_diy3'+'\\'+m[mun])
pygame.mixer.music.play()
play_button = stop_img
click=0
pygame.mixer.music.unpause()
if x>420 and x<520 and y>350 and y<400:
mun+= 1
if mun>len(m)-1:
mun=0
pygame.mixer.music.load('C:\\Users\\pc\\Documents\\pygame_lesson5_diy3'+'\\'+m[mun])
pygame.mixer.music.play()
play_button = stop_img
click=0
pygame.mixer.music.unpause()
if pygame.mixer.music.get_busy() == False:
mun+=1
if mun>len(m)-1:
......
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