Commit a9c4a6f1 by BellCodeEditor

auto save

parent da6d7323
Showing with 6 additions and 2 deletions
......@@ -13,7 +13,7 @@ last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo
pygame.mixer.music.load("")
pygame.mixer.music.load("歌曲3.wav")
volume = 0.5
......@@ -22,7 +22,11 @@ while True:
if event.type == pygame.QUIT:
exit()
if event.type ==pygame.KEYDOWN:
if
if event.key == pygame.K_UP:
volume +=0.1
if event.key == pygame.K_DOWN:
volume -=0.1
pygame.mixer.music.set_volume(volume)
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