Commit 60a6efe2 by BellCodeEditor

save project

parent df9fa816
Showing with 15 additions and 1 deletions
...@@ -39,6 +39,7 @@ while True: ...@@ -39,6 +39,7 @@ while True:
volume = 0 volume = 0
pygame.mixer.music.set_volume(volume) pygame.mixer.music.set_volume(volume)
# 按下鼠标 # 按下鼠标
if event.type == locals.MOUSEBUTTONDOWN: if event.type == locals.MOUSEBUTTONDOWN:
if event.button==1: if event.button==1:
...@@ -51,7 +52,20 @@ while True: ...@@ -51,7 +52,20 @@ while True:
else: else:
play_button = play_img play_button = play_img
pygame.mixer.music.pause() pygame.mixer.music.pause()
if x>120 and x<220 and y>350 and y<400:
mun-=1
if mun<0:
mun=len(list)-1
pygame.mixer.music.load(list[mun])
pygame.mixer.music.play()
click += 1
if x>420 and x<520 and y>350 and y<400:
mun+=1
if mun>len(list)-1:
mun=0
pygame.mixer.music.load(list[mun])
pygame.mixer.music.play()
click = 0
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
mun+=1 mun+=1
if mun>len(list)-1: if mun>len(list)-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