Commit c628afab by BellCodeEditor

save project

parent f57a98bb
Showing with 5 additions and 1 deletions
...@@ -18,7 +18,11 @@ while True: ...@@ -18,7 +18,11 @@ while True:
if event.type==locals.QUIT: if event.type==locals.QUIT:
exit() exit()
if event.type==K_UP: if event.type==K_UP:
volume+=0.1
pygame.mixer.music.set_volume(volume)
elif event.type==K_DOWN:
volume_=0.1
pygame.mixer.music.set_volume(volume)
if pygame.mixer.music.get_busy()==False: if pygame.mixer.music.get_busy()==False:
pygame.mixer.music.play() 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