Commit e9eeece3 by BellCodeEditor

save project

parent 9e503348
Showing with 9 additions and 0 deletions
...@@ -92,6 +92,12 @@ while True: ...@@ -92,6 +92,12 @@ while True:
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)
music_m = music_length//66
music_s = music_length%60
if music_s < 10:
music_s ="0"+str(music_s)
info2 = str (music_m)+":"+str(music_s)
new_logo =pygame.transform.rotate(logo_img ,angle) new_logo =pygame.transform.rotate(logo_img ,angle)
newRect = new_logo.get_rect(center=(320,200)) newRect = new_logo.get_rect(center=(320,200))
#print(newRect) #rect(170,65,300,270) #print(newRect) #rect(170,65,300,270)
...@@ -105,5 +111,7 @@ while True: ...@@ -105,5 +111,7 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
scoreSurf = basic_font,render(info,True,(225,255,255) scoreSurf = basic_font,render(info,True,(225,255,255)
scoreSurf.bilt(scoreSurf,(120,440)) scoreSurf.bilt(scoreSurf,(120,440))
scoreSurf2 = basic_font.render("/"+info2,Ture,(0,0,0) )
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
\ 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