Commit 252c238b by BellCodeEditor

save project

parent 6c292364
Showing with 14 additions and 0 deletions
...@@ -60,3 +60,17 @@ while True: ...@@ -60,3 +60,17 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
if event.type == locals.MOUSEBUTTONDOWN:
click += 1
if click % 2 == 0 :
play_button = stop_img
pygame.mixer.music.unpause()
else:
play_button = stop_img
pygame.mixer.music.pause()
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