Commit dbc16f61 by BellCodeEditor

save project

parent 1ba42b69
Showing with 8 additions and 8 deletions
......@@ -21,13 +21,15 @@ while True:
exit()
if event.type==locals.KEYDOWN:
if event.key==locals.K_w:
v+=0.1
v+=0.1
if v>1:
v=1
pygame.mixer.music.set_v(v)
if event.key==locals.
if event.key==locals.K_s:
v-=0.1
if v<0:
v=0
pygame.mixer.music.set_v(v)
......@@ -44,9 +46,7 @@ while True:
screen.blit(stop_img, (270, 330)) # 暂停按钮
screen.blit(logo_img, (170, 60)) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
if event.type==K_DOWN:
screen.blit(next_img, (420, 350)) # 下一
......@@ -60,4 +60,4 @@ while True:
# 刷新画面
pygame.display.update()
pygame.display.update(5)
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