Commit cb2ead2e by BellCodeEditor

save project

parent 0292cfce
Showing with 6 additions and 1 deletions
......@@ -14,7 +14,7 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
music_list = []
path = "C:\\Users\\dell\Music\\"
path = "C:\\Users\\21901\\Desktop\\新建文件夹 (3)"
filelist = os.listdir(path)
num = -1
for i in filelist:
......@@ -85,6 +85,11 @@ while True:
pygame.mixer.music.play()
new_logo=pygame.transform.rotate(logo_img,angle)
angle+=1
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)
newrect=new_logo.get_rect(center=(320,200))
pos=(newrect[0],newrect[1])
# 绘制画面
......
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