Commit c6263d0d by BellCodeEditor

save project

parent 2fe9379b
Showing with 4 additions and 0 deletions
...@@ -24,9 +24,13 @@ while True: ...@@ -24,9 +24,13 @@ while True:
if event.type==locals.KEYDOWN: if event.type==locals.KEYDOWN:
if event.key==locals.K_UP: if event.key==locals.K_UP:
yl+=0.1 yl+=0.1
if yl>1:
yl=1
pygame.mixer.music.set_volume(yl) pygame.mixer.music.set_volume(yl)
if event.key==locals.K_DOWN: if event.key==locals.K_DOWN:
yl-=0.1 yl-=0.1
if yl<0:
yl=0
pygame.mixer.music.set_volume(yl) pygame.mixer.music.set_volume(yl)
if pygame.mixer.music.get_busy()==False: if pygame.mixer.music.get_busy()==False:
......
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