Commit 135f838e by BellCodeEditor

save project

parent ad728868
Showing with 10 additions and 1 deletions
......@@ -86,6 +86,12 @@ while True:
num = 0
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))
pos=[newrect[0],newrect[1]]
......@@ -95,7 +101,9 @@ while True:
screen.blit(play_button, (270, 330)) # 暂停按钮
screen.blit(new_logo,pos) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
screen.blit(next_img, (420, 350))
time01=font1.render(info,True,(0,0,0))
screen.blit(time01,(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