Commit e106669c by BellCodeEditor

save project

parent d282000b
Showing with 8 additions and 0 deletions
......@@ -17,6 +17,9 @@ pygame.mixer.music.load("歌曲4.ogg")
volume=0.8
pygame.mixer.music.set_volume(volume)
click=0
play_button=stop_img
if pygame.mixer.music.get_busy()==False:
pygame.mixer.music.play()
while True:
......@@ -36,6 +39,11 @@ while True:
volume=0
pygame.mixer.music.set_volume(volume)
if event.type==locals.MOUSEBUTTONDOWN:
click+=1
if click%2==0:
play_button=stop_img
pygame.mixer
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(stop_img, (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