Commit 2320cffc by BellCodeEditor

save project

parent b3a3caf0
Showing with 10 additions and 0 deletions
...@@ -69,6 +69,16 @@ while True: ...@@ -69,6 +69,16 @@ while True:
click = 0 click = 0
play_button = stop_img play_button = stop_img
if x>420 and x<520 and y>350 and y<400:
xb = xb + 1
if xb > len(music_list) - 1:
xb = 0
pygame.mixer.music.load(music_list[xb])
print(xb)
pygame.mixer.music.play()
click = 0
play_button = stop_img
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
xb = xb + 1 xb = xb + 1
if xb > len(music_list) - 1: if xb > len(music_list) - 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