Commit fc52ee8e by BellCodeEditor

save project

parent 1e308158
Showing with 4 additions and 4 deletions
...@@ -25,9 +25,6 @@ play_button = stop_img ...@@ -25,9 +25,6 @@ play_button = stop_img
num=-1 num=-1
pygame.mixer.music.load(music_list[num]) pygame.mixer.music.load(music_list[num])
while True: while True:
num+=1
if num>len(music_list)-1:
num=0
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
...@@ -60,7 +57,10 @@ while True: ...@@ -60,7 +57,10 @@ while True:
pygame.mixer.music.pause() pygame.mixer.music.pause()
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
pygame.mixer.music.load(music_list[num]) num+=1
if num>len(music_list)-1:
num=0
pygame.mixer.music.load(path+"\\"+music_list[num])
pygame.mixer.music.play() pygame.mixer.music.play()
......
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