Commit a4facd9c by BellCodeEditor

save project

parent c075cadc
Showing with 3 additions and 4 deletions
...@@ -17,9 +17,9 @@ while True: ...@@ -17,9 +17,9 @@ 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()
volume = 0.2
pygame.mixer.music.set_volume(volume)
if pygame .mixer.music.get_busy()==False:
pygame.mixer.music.play()
start = stop_img start = stop_img
click = 0 click = 0
while True: while True:
...@@ -40,10 +40,9 @@ while True: ...@@ -40,10 +40,9 @@ while True:
if event.type == locals.MOUSEBUTTONDOWN: if event.type == locals.MOUSEBUTTONDOWN:
click += 1 click += 1
if click%2 == 0: if click%2 == 0:
play_buttin == stop_ing
pygame.mixer.music.unpause() pygame.mixer.music.unpause()
start = stop_img
else: else:
pygame.mixer.music.pause()
start = play_img start = play_img
if volume <=0: if volume <=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