Commit 9347b22e by BellCodeEditor

save project

parent c209c459
Showing with 8 additions and 0 deletions
......@@ -38,6 +38,14 @@ while True:
if volume<0:
volume=0
pygame.mixer.music.set_volume(volume)
if event.type == locals.MOUSEBUTTONDOWN:
click += 1
if click % 2 == 0:
pygame.mixer.music.unpause()
play_button = stop_img
else:
pygame.mixer.music.pause()
play_button = play_img
if pygame.mixer.music.get_buey()==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