Commit bff2a9e8 by BellCodeEditor

save project

parent 329bf08a
Showing with 0 additions and 13 deletions
......@@ -81,16 +81,6 @@ 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)
newRect = new_logo.get_rect(center=(320, 200))
......@@ -103,9 +93,6 @@ while True:
screen.blit(new_logo, pos) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
# 绘制时间进度
scoreSurf = basic_font.render(info, True, (255, 255, 255))
screen.blit(scoreSurf, (120,440))
# 刷新画面
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