Commit 838f1a8b by BellCodeEditor

save project

parent f83fbc2e
Showing with 8 additions and 5 deletions
...@@ -80,11 +80,14 @@ while True: ...@@ -80,11 +80,14 @@ while True:
pygame.mixer.music.load(music_list[num]) pygame.mixer.music.load(music_list[num])
pygame.mixer.music.play() pygame.mixer.music.play()
play_time = pygame.mixer_music.get_pos()
play_time = int(play_time/1000) play_time = pygame.mixer_music.get_pos()
play_m = play_time//60 play_time = int(play_time/1000)
play_s = play_time % 60 play_m = play_time//60
info = str(play_m) + ":" + str(play_s) play_s = play_time % 60
info = str(play_m) + ":" + str(play_s)
new_logo = pygame.transform.rotate(logo_img, angle) new_logo = pygame.transform.rotate(logo_img, angle)
newRent = new_logo.get_rect(center=(320,200)) newRent = new_logo.get_rect(center=(320,200))
pos = (newRent[0],newRent[1]) pos = (newRent[0],newRent[1])
......
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