Commit a8db3295 by BellCodeEditor

save project

parent eb54345a
Showing with 5 additions and 2 deletions
...@@ -85,11 +85,12 @@ while True: ...@@ -85,11 +85,12 @@ 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_time = pygame.mixer.music.get_pos play_time = pygame.mixer.music.get_pos()
play_time = int(play_time/1000) play_time = int(play_time/1000)
play_m = play_time//60 play_m = play_time//60
play_s = play_time%60 play_s = play_time%60
info = str(play_m)+":"+str(play_s) info = str(play_m)+":"+str(play_s)
new_logo=pygame.transform.rotate(logo_img,angle) new_logo=pygame.transform.rotate(logo_img,angle)
newRect=new_logo.get_rect(center=(320,200)) newRect=new_logo.get_rect(center=(320,200))
pos=(newRect[0],newRect[1]) pos=(newRect[0],newRect[1])
...@@ -101,6 +102,7 @@ while True: ...@@ -101,6 +102,7 @@ while True:
screen.blit(new_logo, pos) # 中间logo图 screen.blit(new_logo, pos) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲 screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
my_font = basic_font.render(info,Ture,(225,225,225))
screen.blit(my_font,(120,440))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
\ 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