Commit 700ab8f5 by BellCodeEditor

save project

parent 693ad382
Showing with 17 additions and 16 deletions
...@@ -54,22 +54,23 @@ while True: ...@@ -54,22 +54,23 @@ while True:
else: else:
pygame.mixer.music.pause() pygame.mixer.music.pause()
cnm=stop_img cnm=stop_img
if x>120 and x<220 and y>350 and y<400: if x>120 and x<220 and y>350 and y<400:
num-=1 num-=1
if num<0: if num<0:
num=len(nmd)-1 num=len(nmd)-1
sb=0 print(nmd)
play_img=stop_img sb=0
pygame.mixer.music.load(path+'\\'+nmd[num]) play_img=stop_img
pygame.mixer.music.play() pygame.mixer.music.load(path+'\\'+nmd[num])
if x>120 and x<220 and y>350 and y<400: pygame.mixer.music.play()
num+=1 if x>420 and x<520 and y>350 and y<400:
if num<0: num+=1
num=len(nmd)+1 if num>len(nmd)-1:
sb=0 num=0
play_img=stop_img sb=0
pygame.mixer.music.load(path+"\\"+nmd[num]) play_img=stop_img
pygame.mixer.music.play() pygame.mixer.music.load(path+"\\"+nmd[num])
pygame.mixer.music.play()
if pygame.mixer.music.get_busy()==False: if pygame.mixer.music.get_busy()==False:
num+=1 num+=1
if num==len(nmd): if num==len(nmd):
......
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