Commit 2f30ab95 by BellCodeEditor

save project

parent e410e3f3
Showing with 13 additions and 2 deletions
...@@ -84,6 +84,13 @@ while True: ...@@ -84,6 +84,13 @@ while True:
pygame.mixer.music.load(path + "\\" + music_list[num]) pygame.mixer.music.load(path + "\\" + 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_m = play_time//60
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)
newRet = new_logo.get_rect(center = (320,200)) newRet = new_logo.get_rect(center = (320,200))
pos=(newRet[0],newRet[1]) pos=(newRet[0],newRet[1])
...@@ -94,6 +101,9 @@ while True: ...@@ -94,6 +101,9 @@ while True:
screen.blit(play_button, (270, 330)) screen.blit(play_button, (270, 330))
screen.blit(new_logo,pos) screen.blit(new_logo,pos)
screen.blit(last_img, (120, 350)) screen.blit(last_img, (120, 350))
screen.blit(next_img, (420, 350)) screen.blit(next_img, (420, 350))
soreSunf = basic_font.render(info,True,(225,225,225))
screen.blit(soreSunf,(120,440))
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