Commit d1a54ce7 by BellCodeEditor

save project

parent 567d1356
Showing with 9 additions and 5 deletions
...@@ -61,11 +61,15 @@ while True: ...@@ -61,11 +61,15 @@ while True:
num-=1 num-=1
if num<0: if num<0:
num=len(MusicKey)-1 num=len(MusicKey)-1
if x>120 and x<220 and y>350 and y<400: pygame.mixer.music.play()
num-=1 play_button=stop_img
if num<0: if x>420 and x<520 and y>350 and y<400:
num=len(MusicKey)-1 num+=1
pygame.mixer.music.load(path+'\\'+MusicKey[num]) if num>len(MusicKey)-1:
num=0
pygame.mixer.music.play()
play_button=stop_img
pygame.mixer.music.load(list+'\\'+MusicKey[num])
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num+=1 num+=1
if num >len(MusicKey)-1: if num >len(MusicKey)-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