Commit 39f9c2ba by BellCodeEditor

save project

parent 70dad8ad
Showing with 9 additions and 1 deletions
...@@ -24,6 +24,7 @@ click = 0 ...@@ -24,6 +24,7 @@ click = 0
play_button = stop_img play_button = stop_img
num=-1 num=-1
num1=0 num1=0
num2=0
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
...@@ -61,7 +62,14 @@ while True: ...@@ -61,7 +62,14 @@ while True:
click=0 click=0
play_button=stop_img play_button=stop_img
pygame.mixer.music.play() pygame.mixer.music.play()
if x>420 and x<520 and y>350 and y<400:
num2+=1
if num2==len(music)-1:
num2=0
pygame.mixer.music.load(path+"\\"+music[num2])
click=0
play_button=stop_img
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(music)-1: if num>len(music)-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