Commit c4331ea7 by BellCodeEditor

save project

parent c5d08ed8
Showing with 15 additions and 3 deletions
......@@ -60,11 +60,23 @@ while True:
if x > 120 and x< 220 and y > 350 and y < 400:
a-=1
if a<0:
a=len(p)
a=len(p)-1
pygame.mixer.music.load(path+'\\'+p[a])
pygame.mixer.music.play()
click=2
play_button = stop_img
if x > 420 and x< 520 and y > 350 and y < 400:
a+=1
if a>len(p)-1:
a=0
pygame.mixer.music.load(path+'\\'+p[a])
pygame.mixer.music.play()
click=2
play_button = stop_img
if pygame.mixer.music.get_busy() == False:
a+=1
if a > len(p)-1:
click=2
if a > len(p)-1:
a=0
pygame.mixer.music.load(path+'\\'+p[a])
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