Commit a04552a8 by BellCodeEditor

save project

parent fe6dde94
Showing with 6 additions and 2 deletions
...@@ -101,9 +101,12 @@ while True: ...@@ -101,9 +101,12 @@ while True:
music_s = music_long%60 music_s = music_long%60
music_m = music_long//60 music_m = music_long//60
music_info = "/"+str(music_m)+":"+str(music_s) music_info = "/"+str(music_m)+":"+str(music_s)
vl=volume*100
vl=int(vl)
vl = str(vl)
scoreSurf=basic_font.render(info,True,(255,255,255)) scoreSurf=basic_font.render(info,True,(255,255,255))
music_a=basic_font.render(music_info,True,(0,0,0)) music_a=basic_font.render(music_info,True,(0,0,0))
vl_a = basic_font.render(vl,True,(125,125,125))
screen.blit(scoreSurf,(0,0)) screen.blit(scoreSurf,(0,0))
screen.blit(music_a,(160,440)) screen.blit(music_a,(160,440))
...@@ -114,6 +117,7 @@ while True: ...@@ -114,6 +117,7 @@ while True:
screen.blit(last_img, (120, 350)) # 上一曲 screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) screen.blit(next_img, (420, 350))
screen.blit(scoreSurf,(120,440)) screen.blit(scoreSurf,(120,440))
screen.blit(music_a,(160,440)) # 下一曲 screen.blit(music_a,(160,440))
screen.blit(vl_a,(500,100)) # 下一曲
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
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