Commit aa29e140 by BellCodeEditor

save project

parent d574edd4
Showing with 10 additions and 1 deletions
......@@ -88,6 +88,14 @@ while True:
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
# 歌曲播放进度时间
play_time = pygame.mixer.music.get_pos()
play_time = int(play_time/1000)
play_m = play_time//60 # 分
play_s = play_time % 60 # 秒
info = str(play_m) + ":" + str(play_s)
# 旋转图片(注意:这里要搞一个新变量,存储旋转后的图片)
new_logo = pygame.transform.rotate(logo_img, angle)
# 校正旋转图片的中心点
......@@ -107,7 +115,7 @@ while True:
# 绘制时间进度
scoreSurf = basic_font.render(info, True, (255, 255, 255))
screen.blit(scoreSurf, (120,440))
# 刷新画面
pygame.display.update()
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