Commit 831c354c by BellCodeEditor

save project

parent 2458d17c
Showing with 7 additions and 1 deletions
...@@ -54,12 +54,18 @@ while True: ...@@ -54,12 +54,18 @@ while True:
else: else:
p=play_img p=play_img
pygame.mixer.music.pause() pygame.mixer.music.pause()
if x>120 and x<170 and y>350 and y<400: if x>120 and x<220 and y>350 and y<400:
n-=1 n-=1
if n<0: if n<0:
n=len(mu)-1 n=len(mu)-1
pygame.mixer.music.load(path+'\\'+mu[n]) pygame.mixer.music.load(path+'\\'+mu[n])
pygame.mixer.music.play() pygame.mixer.music.play()
if x>420 and x<520 and y>350 and y<400:
n+=1
if n>len(mu)-1:
n=0
pygame.mixer.music.load(path+'\\'+mu[n])
pygame.mixer.music.play()
p=stop_img p=stop_img
c=0 c=0
if pygame.mixer.music.get_busy()==False: if pygame.mixer.music.get_busy()==False:
......
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