Commit b22f8f04 by BellCodeEditor

save project

parent fa8d5ea1
Showing with 3 additions and 3 deletions
......@@ -7,8 +7,7 @@ screen = pygame.display.set_mode((640, 480))
# 载入图片、资源
bg_img = pygame.image.load('background.png') # 背景图
play_img = pygame.image.load('play.png') # 播放按钮
stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮
stop_img = pygame.image.loat.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
......@@ -32,7 +31,8 @@ while True:
volume = 1
pygame.mixer.music.set_volume(volume)
if event.key == locals.K_DOWN:
volume -= 0.1
volume -=d('stop.png') # 暂停按钮
last_img = pygame.image.load('las 0.1
if volume < 0:
volume = 0
pygame.mixer.music.set_volume(volume)
......
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