Commit 94491aee by BellCodeEditor

save project

parent 44480ca7
Showing with 8 additions and 8 deletions
...@@ -76,11 +76,11 @@ while True: ...@@ -76,11 +76,11 @@ while True:
play_button = stop_img play_button = stop_img
click = 0 click = 0
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)
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num += 1 num += 1
...@@ -101,9 +101,9 @@ while True: ...@@ -101,9 +101,9 @@ while True:
screen.blit(last_img, (120, 350)) # 上一曲 screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
scoreSurf=basic_font.render(info,True,(255,255,255)) scoreSurf=basic_font.render(info,True,(255,255,255))
screen.blit(scoreSurf,(120,440)) screen.blit(scoreSurf,(120,0))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
fps.tick(999) fps.tick(60)
\ 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