Commit 11806e8d by BellCodeEditor

save project

parent 3af5b351
Showing with 9 additions and 0 deletions
...@@ -14,6 +14,15 @@ while True: ...@@ -14,6 +14,15 @@ while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
if event.type == locals.MOUSEBUTTONDOWN
click += 1
if click % 2 == 0:
pygame.mixer.music.unpause()
play_button = stop_ing
else:
pygame.mixer.music.pause()
play_button = play_ing
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
pygame.mixer.music.play(0) pygame.mixer.music.play(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