Commit 585af895 by BellCodeEditor

save project

parent 8dd8fb61
Showing with 6 additions and 6 deletions
...@@ -22,13 +22,13 @@ while True: ...@@ -22,13 +22,13 @@ while True:
pygame.mixer.music.set_volume(voice) pygame.mixer.music.set_volume(voice)
if event.type==locals.KEYDOWN: if event.type==locals.KEYDOWN:
if event.key==locals.K_UP: if event.key==locals.K_UP:
volume+=0.1 voice+=0.1
if volume>1: if voice>1:
volume=1 voice=1
if event.key==locals.K_DOWN: if event.key==locals.K_DOWN:
volume-=0.1 voice-=0.1
if volume<0: if voice<0:
volume=0 voice=0
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(stop_img, (270, 330)) # 暂停按钮 screen.blit(stop_img, (270, 330)) # 暂停按钮
......
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