Commit 812dab96 by BellCodeEditor

save project

parent f99381a2
Showing with 11 additions and 4 deletions
......@@ -94,7 +94,9 @@ while True:
play_m = play_time//60 #fen
play_s = play_time % 60 #miao
info = str(play_m) = ":" + str(play_s)
if play_s < 10:
play_s = "0" + str(play_s)
info = str(play_m) + ":" + str(play_s)
new_logo = pygame.transform.rotate(logo_img, angle)
newRect = new_logo.get_rect(center=(320,200))
......@@ -108,7 +110,12 @@ while True:
screen.blit(new_logo, pos) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
FPS.tick(60)
#绘制时间进度
scoreSurf = basic_font.render(into,True,(225,225,225))
screen.blit(scoreSurf,(120,400))
scoreSurf2 = basic_font.render("/" + info2,True,(0,0,0))
screen.blit(scoreSurf2,(170,440))
# 刷新画面
pygame.display.update()
\ No newline at end of file
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