Commit 616bba4c by BellCodeEditor

save project

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