Commit c01c5935 by BellCodeEditor

save project

parent 2fc67b17
Showing with 9 additions and 2 deletions
...@@ -30,9 +30,16 @@ while True: ...@@ -30,9 +30,16 @@ while True:
if m>1: if m>1:
m=1 m=1
pygame.mixer.music.set_volume(m) pygame.mixer.music.set_volume(m)
if.event.tupe==locals.MOUSEBUTTONDOWN
a+=1
if a%2==0:
pygame.mixer.music.unpause
b=stop_img
else:
pygame.mixer.music.pause()
b=play_img
if pygame.mixer.music.get_busy()==False: if pygame.mixer.music.get_busy()==False:
pygame.mixer.music.play() pygame.mixer.music.play()
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
......
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