Commit d0dd518f by BellCodeEditor

save project

parent 6fba33bf
Showing with 8 additions and 0 deletions
...@@ -93,6 +93,10 @@ while True: ...@@ -93,6 +93,10 @@ 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)
music_m = music_time//60
music_s = music_time % 60
info2 = str(music_m) + ":" +str(music_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))
...@@ -106,5 +110,9 @@ while True: ...@@ -106,5 +110,9 @@ while True:
#screen.blit(logo_img, (170, 60)) # 中间logo图 #screen.blit(logo_img, (170, 60)) # 中间logo图
screen.blit(last_img,pos) # 上一曲 screen.blit(last_img,pos) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
scoreSurf = basic_font.render(info,Ture,(255,255,255))
score.blit(scoreSurf,(120,440))
scoreSurf2 = basic_font.render("/"+info2,Ture,(0,0,0))
score.blit(scoreSurf,(170,440))
# 刷新画面 # 刷新画面
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