Commit dd39b751 by BellCodeEditor

save project

parent 5509e2b9
Showing with 16 additions and 0 deletions
...@@ -59,6 +59,17 @@ while True: ...@@ -59,6 +59,17 @@ while True:
play_m=play_time//60 play_m=play_time//60
play_s=play_time%60 play_s=play_time%60
if play_s<10:
play_s="0"str(play_s)
info=str(play_m)+":"+str(play_s)
music_m=music_length//60
music_s=music_length%60
if music_m<10:
music_s="0"+str(music_s)
info=str(play_m)+":"+str(play_s) info=str(play_m)+":"+str(play_s)
new_logo=pygame.transform.rotate(logo_img,angle) new_logo=pygame.transform.rotate(logo_img,angle)
newRect=new_logo.get_rect(center=(320,200)) newRect=new_logo.get_rect(center=(320,200))
...@@ -73,5 +84,9 @@ while True: ...@@ -73,5 +84,9 @@ 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)) # 下一曲
# 刷新画面 # 刷新画面
scoreSurf=basic_font.render(info,True,(225,225,225))
screen.blit(scoreSurf,(120,440))
scoreSurf2=basic_font.render("/"+iofo.True,(0,0,0))
screen.blit(scoreSurf2,(170,440))
pygame.display.update() pygame.display.update()
FPS.tick(60) FPS.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