Commit 762b6f19 by BellCodeEditor

save project

parent c428f242
Showing with 9 additions and 1 deletions
...@@ -85,11 +85,19 @@ while True: ...@@ -85,11 +85,19 @@ while True:
num = 0 num = 0
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_timg = pygame.mixer.music.get_pos()
play_timg = int(play_timg/1000)
play_m = play_timg//60
play_s = play_timg % 60
info = str(play_m) + ':' + str(play_s)
#旋转后的唱盘图片 #旋转后的唱盘图片
new_logo = pygame.transform.rotate(logo_img,sd) new_logo = pygame.transform.rotate(logo_img,sd)
nweRect = new_logo.get_rect(center = (320,200)) nweRect = new_logo.get_rect(center = (320,200))
pos = (nweRect[0],nweRect[1]) pos = (nweRect[0],nweRect[1])
sd+=1 if play_button == stop_img:
sd+=99999
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
......
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