Commit 05c1206e by BellCodeEditor

save project

parent 1fb2f3f6
Showing with 18 additions and 0 deletions
...@@ -82,6 +82,19 @@ while True: ...@@ -82,6 +82,19 @@ while True:
click += 2 click += 2
else: else:
click += 1 click += 1
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)
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num += 1 num += 1
...@@ -103,5 +116,9 @@ while True: ...@@ -103,5 +116,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(into,Ture,(255,255,255))
screen.blit(scoreSurf(120,440))
pygame.display.update() pygame.display.update()
# FPS.tick(60) # FPS.tick(60)
\ 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