Commit 7af0ca97 by BellCodeEditor

save project

parent d7027df4
Showing with 6 additions and 1 deletions
...@@ -21,7 +21,12 @@ while True: ...@@ -21,7 +21,12 @@ while True:
exit() exit()
if pygame.mixer.music.get_busy()==False: if pygame.mixer.music.get_busy()==False:
pygame.mixer.music.play() pygame.mixer.music.play()
# 绘制画面 if event.type==locals.KEYDOWN:
if event.key==locals.K_UP:
volume+=0.1
if volume=1
pygame.mixer.music.set_volume(volume)
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(stop_img, (270, 330)) # 暂停按钮 screen.blit(stop_img, (270, 330)) # 暂停按钮
screen.blit(logo_img, (170, 60)) # 中间logo图 screen.blit(logo_img, (170, 60)) # 中间logo图
......
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