Commit b041259d by BellCodeEditor

save project

parent 7f3d6800
Showing with 6 additions and 5 deletions
...@@ -20,11 +20,7 @@ click = 0 ...@@ -20,11 +20,7 @@ click = 0
play_button = stop_img play_button = stop_img
while True: while True:
num+=1
if num>len(music_list)-1:
num=0
pygame.mixer.music.load(music_list[num])
pygame.mixer.music.play()
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
...@@ -54,6 +50,11 @@ while True: ...@@ -54,6 +50,11 @@ while True:
pygame.mixer.music.pause() pygame.mixer.music.pause()
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num+=1
if num>len(music_list)-1:
num=0
pygame.mixer.music.load(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