Commit 585b14c3 by BellCodeEditor

save project

parent 42df682b
Showing with 16 additions and 0 deletions
...@@ -39,6 +39,22 @@ while True: ...@@ -39,6 +39,22 @@ while True:
click = 0 click = 0
pygame.mixer.music.unpause() pygame.mixer.music.unpause()
play_button = stop play_button = stop
if x >= 420 and x <= 520 and y >= 350 and y <= 400:
click = 0
num += 1
if num > len(music_list)-1:
num = 0
pygame.mixer.music.load(path+"\\"+music_list[num])
pygame.mixer.music.play()
play_button = stop
if x >= 120 and x <= 220 and y >= 350 and y <= 400:
click = 0
num -= 1
if num < 0:
num = len(music_list)-1
pygame.mixer.music.load(path+"\\"+music_list[num])
pygame.mixer.music.play()
play_button = stop
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.key == locals.K_DOWN: if event.key == locals.K_DOWN:
if volume > 0: if volume > 0:
......
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