Commit 0344455e by BellCodeEditor

save project

parent 2cf8e4e2
Showing with 9 additions and 1 deletions
......@@ -20,6 +20,7 @@ pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
num=-1
angle=0
my_font=pygame.font.Font('neuropol.ttf',18)
parth="C:\\Users\\Administrator\\Desktop\\music"
play_button = stop_img
music_list=[]
......@@ -85,13 +86,20 @@ while True:
new_rect=new_img.get_rect(center=(320,200))
pos=(new_rect[0],new_rect[1])
if play_button==stop_img:
angle+=1
angle+=1
time=pygame.mixer.music.get_pos()
time=int(time/1000)
time_n=time//60
time_s=time%60
info=str(time_n)+"i"+str(time_s)
test=my_font.render(info,True,(255,0,255))
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮
screen.blit(new_img, pos) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
screen.blit(test,(100,400))
# 刷新画面
pygame.display.update()
FPS.tick(50)
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