Commit d832aa17 by BellCodeEditor

save project

parent 43970b9e
Showing with 8 additions and 0 deletions
...@@ -99,6 +99,12 @@ while True: ...@@ -99,6 +99,12 @@ while True:
play_s=play_time%60 play_s=play_time%60
info=str(play_m)+':'+str(play_s) info=str(play_m)+':'+str(play_s)
s=new_font.render(info,True,(255,255,255)) s=new_font.render(info,True,(255,255,255))
music_m=music_len//60
music_s=music_len%60
ifol=str(music_m)+':'+str(music_s)
if music_s<10:
music_s='0'+str(music_s)
s1=new_font.render(info,True,(0,0,0))
new_logo=pygame.transform.rotate(logo_img,angle) new_logo=pygame.transform.rotate(logo_img,angle)
new_rect=new_logo.get_rect(center=(320,200)) new_rect=new_logo.get_rect(center=(320,200))
pos=(new_rect[0],new_rect[1]) pos=(new_rect[0],new_rect[1])
...@@ -111,6 +117,7 @@ while True: ...@@ -111,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(s,(120,440)) screen.blit(s,(120,440))
screen.blit(s1,(120,440))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
F.tick(60) F.tick(60)
\ 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