Commit a4c8e555 by BellCodeEditor

save project

parent af6ab20b
Showing with 10 additions and 1 deletions
...@@ -30,10 +30,19 @@ while True: ...@@ -30,10 +30,19 @@ while True:
volume += 0.1 volume += 0.1
if volume > 1: if volume > 1:
volume = 1 volume = 1
pygame.mixer.music.set_volume(volume) pygame.mixer.music.set_volume(volume)
ifevent.type == locals.MOUSEBUTTONDOWN:
click += 1
if click % 2 == 0;
play_button = stop_img
pygame.mixer.music.set_volume(volume)
else:
play_button = play_img
pygame.mixer.music.pause()
volume = 0.2 volume = 0.2
pygame.mixer.music.set_volume(volume) pygame.mixer.music.set_volume(volume)
start = stop_img start = stop_img
click = 0 click = 0
while True: while True:
......
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