Commit fb2412c1 by BellCodeEditor

save project

parent 89eb9649
Showing with 15 additions and 0 deletions
......@@ -59,6 +59,18 @@ while True:
num += 1
if num > len(music_list):
num = 0
if x > 120 and x < 220 and y > 350 and y< 450:
num -= 1
if num < len(music_list):
num = len(music_list)-1
click = 0
play_button = stop_img
if x > 320 and x < 420 and y > 350 and y < 450:
num += 1
if num > len(music_list):
num = 0
click = 0
play_button = stop_img
pygame.mixer.music.load(path+"\\"+music_list[num])
pygame.mixer.music.play()
......@@ -70,3 +82,5 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
pygame.display.update()
if x>120 and x<220 and y>350 and y<450
\ No newline at end of file
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