Commit a40811f3 by BellCodeEditor

save project

parent 5ffe730b
Showing with 2 additions and 2 deletions
......@@ -19,12 +19,12 @@ while True:
exit()
if event.type == locals.KEYDOWN:
if event.key == locals.K_UP:
a+=0.1
a+=0.05
if a>1:
a = 1
pygame.mixer.music.set_volume(a)
if event.key == locals.K_DOWN:
a-=0.1
a-=0.05
if a<0:
a = 0
pygame.mixer.music.set_volume(a)
......
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