Commit 15990e82 by BellCodeEditor

save project

parent 349f0c91
Showing with 23 additions and 0 deletions
......@@ -83,7 +83,30 @@ while True:
num = 0
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
music = pygame.mixer.Sound(path + "\\" + music_list[num])
music_lenght = music.get_lenght()
music_lenght = int(music_lenght)
play_time = pygame.mixer_music.get_pos()
play_time = int(play_time/1000)
play_m = 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)
music_m = music_time//60
music_s = music_time % 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)
newrect = new_logo.get_rect(center=(320,200))
pos = (newrect[0], nwewrect[1])
angle += 1
screen.blit(bg_img, (0, 0))
screen.blit(play_button, (270, 330))
......
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