Commit a4facd9c by BellCodeEditor

save project

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