Commit fe6dde94 by BellCodeEditor

save project

parent c951c0fa
Showing with 6 additions and 2 deletions
...@@ -92,6 +92,8 @@ while True: ...@@ -92,6 +92,8 @@ while True:
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
if play_s<10:
play_s="0"+str(play_s)
info=str(play_m)+":"+str(play_s) info=str(play_m)+":"+str(play_s)
music = pygame.mixer.Sound(path + "\\" + music_list[num]) music = pygame.mixer.Sound(path + "\\" + music_list[num])
music_long = music.get_length() music_long = music.get_length()
...@@ -102,7 +104,7 @@ while True: ...@@ -102,7 +104,7 @@ while True:
scoreSurf=basic_font.render(info,True,(255,255,255)) scoreSurf=basic_font.render(info,True,(255,255,255))
music_a=basic_font.render(music_info,True,(0,0,0)) music_a=basic_font.render(music_info,True,(0,0,0))
screen.blit(scoreSurf,(120,440)) screen.blit(scoreSurf,(0,0))
screen.blit(music_a,(160,440)) screen.blit(music_a,(160,440))
# 绘制画面 # 绘制画面
...@@ -110,6 +112,8 @@ while True: ...@@ -110,6 +112,8 @@ while True:
screen.blit(play_button, (270, 330)) # 暂停按钮 screen.blit(play_button, (270, 330)) # 暂停按钮
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))
screen.blit(scoreSurf,(120,440))
screen.blit(music_a,(160,440)) # 下一曲
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
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