Commit aa29e140 by BellCodeEditor

save project

parent d574edd4
Showing with 8 additions and 0 deletions
...@@ -88,6 +88,14 @@ while True: ...@@ -88,6 +88,14 @@ while True:
pygame.mixer.music.load(path + "\\" + music_list[num]) pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play() 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) new_logo = pygame.transform.rotate(logo_img, angle)
# 校正旋转图片的中心点 # 校正旋转图片的中心点
......
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