Commit 6bff8d54 by BellCodeEditor

auto save

parent e2f7427f
Showing with 2 additions and 13 deletions
......@@ -16,17 +16,6 @@ while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if event.type == locals.KEYDOWN:
if event.key==locals.K_UP:
volume+=0.1
if volume>1:
volume=1
pygame.mixer.music.set_volume(volume)
if event.key==locals.K_DOWN:
volume-=0.1
if volume<0:
volume=0
pygame.mixer.music.set_volume(volume)
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
......@@ -36,4 +25,4 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
pygame.dish
\ No newline at end of file
pygame.display.update()
\ No newline at end of file
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