Commit 1881b99c by BellCodeEditor

save project

parent a74b6b0c
Showing with 9 additions and 4 deletions
...@@ -87,10 +87,11 @@ while True: ...@@ -87,10 +87,11 @@ while True:
music_length=int(music_length) music_length=int(music_length)
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
play_ms=str(play_m)+str(play_s) play_ms=str(play_m)+str(play_s)
ujm=we.render(play_ms,True,(0,0,0)) ujm=we.render(play_ms,True,(0,0,0))
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num += 1 num += 1
if num > len(music_list)-1: if num > len(music_list)-1:
...@@ -100,6 +101,7 @@ while True: ...@@ -100,6 +101,7 @@ while True:
music0=pygame.mixer.Sound(path+"\\"+music_list[num]) music0=pygame.mixer.Sound(path+"\\"+music_list[num])
music_length=music0.get_length() music_length=music0.get_length()
music_length=int(music_length) music_length=int(music_length)
e=pygame.transform.rotate(logo_img,et) e=pygame.transform.rotate(logo_img,et)
l=e.get_rect(center=(320,200)) l=e.get_rect(center=(320,200))
if play_button==stop_img: if play_button==stop_img:
...@@ -110,6 +112,8 @@ while True: ...@@ -110,6 +112,8 @@ while True:
screen.blit(e, (l[0],l[1])) # 中间logo图 screen.blit(e, (l[0],l[1])) # 中间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)) # 下一曲
mn=we.render(,True,(255,255,255))
screen.blit(mn,(120,450))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
qaz.tick(90) qaz.tick(90)
\ 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