Commit 616bba4c by BellCodeEditor

save project

parent 3799a5a6
Showing with 11 additions and 8 deletions
......@@ -22,14 +22,17 @@ while True:
if event.type == locals.QUIT:
exit()
if event.type == locals.MOUSEBUTTONDOWN:
if click == 0:
click = 1
pygame.mixer.music.pause()
play_botton = play
else:
click = 0
pygame.mixer.music.unpause()
play_botton = stop
if event.botton == 1:
x,y = event.pos
if x >= 270 and x <= 370 and y >= 330 and y <= 430:
if click == 0:
click = 1
pygame.mixer.music.pause()
play_botton = play
else:
click = 0
pygame.mixer.music.unpause()
play_botton = stop
if event.type == locals.KEYDOWN:
if event.key == locals.K_DOWN:
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