Commit 02e3558b by BellCodeEditor

save project

parent c7635a56
Showing with 7 additions and 2 deletions
...@@ -75,6 +75,11 @@ while True: ...@@ -75,6 +75,11 @@ while True:
print(num) print(num)
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=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) new_logo=pygame.transform.rotate(logo_img,angle)
if play_button == stop_img: if play_button == stop_img:
angle+=1 angle+=1
...@@ -88,4 +93,4 @@ while True: ...@@ -88,4 +93,4 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(99) FPS.tick(250)
\ No newline at end of file \ 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