Commit 90cf9ce3 by BellCodeEditor

save project

parent 04d247be
Showing with 3 additions and 1 deletions
......@@ -15,7 +15,7 @@ pygame.mixer.music.load("歌曲4.ogg")
yl=0.2
pygame.mixer.music.set_volume(yl)
x = 0
play_button = stop_img
while True:
......@@ -35,8 +35,10 @@ while True:
x+=1
if x%2==0:
pygame.mixer.music.unpause()
play_button = stop_img
else:
pygame.mixer.music.pause()
play_button = play_img
if pygame.mixer.music.get_busy()==False:
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