Commit 13494676 by BellCodeEditor

save project

parent 3a3ff16c
Showing with 9 additions and 0 deletions
...@@ -54,6 +54,14 @@ while True: ...@@ -54,6 +54,14 @@ while True:
else: else:
pygame.mixer.music.unpause() pygame.mixer.music.unpause()
b= stop_img b= stop_img
if x > 120 and x < 220 and y > 350 and y < 400:
num -=1
if num <0 :
num=len(c)-1
pygame.mixer.music.load(d + "//" + c[num])
pygame.mixer.music.play()
tick = 0
play_button = stop_img
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num +=1 num +=1
...@@ -62,6 +70,7 @@ while True: ...@@ -62,6 +70,7 @@ while True:
pygame.mixer.music.load(d + "//" + c[num]) pygame.mixer.music.load(d + "//" + c[num])
pygame.mixer.music.play() pygame.mixer.music.play()
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(b, (270, 330)) # 暂停按钮 screen.blit(b, (270, 330)) # 暂停按钮
......
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