Commit 581d250d by BellCodeEditor

save project

parent 356e7552
Showing with 4 additions and 0 deletions
......@@ -23,10 +23,14 @@ while True:
if event.type==locals.KEYDOWN:
if event.key==locals.K_UP:
yl+=0.2
if yl>1:
yl=1
pygame.mixer.music.set_volume(yl)
if event.type==locals.KEYDOWN:
if event.key==locals.K_DOWN:
yl-=0.2
if yl<0:
yl=0
pygame.mixer.music.set_volume(yl)
if pygame.mixer.music.get_busy()==False:
pygame.mixer.music.play()
......
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