Commit b36afa97 by BellCodeEditor

save project

parent 8b112ceb
Showing with 8 additions and 2 deletions
......@@ -21,8 +21,8 @@ while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if pygame.mixer.music.get_busy() == False:
pygame.mixer.music.play()
if event.type == locals.KEYDOWN:
if event.key == locals.K_UP:
volume += 0.1
......@@ -44,6 +44,12 @@ while True:
else:
pygame.mixer.music.pause()
play_button = play_img
if pygame.mixer.music.get_busy() == False:
num+=1
if num > len(muice_list)-1:
num=0
pygame.mixer.music.load(muice_list[num])
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