Commit c68404e2 by BellCodeEditor

save project

parent bc0698a1
Showing with 15 additions and 4 deletions
...@@ -82,16 +82,26 @@ while True: ...@@ -82,16 +82,26 @@ while True:
if num > len(music_list)-1: if num > len(music_list)-1:
num = 0 num = 0
pygame.mixer.music.load(path + "\\" + music_list[num]) pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play() pygame.mixer.music.play()
new_logo = pygame.transform.rotate(logo_img, angle) new_logo = pygame.transform.rotamusic1=pygame.Sound(path + "\\" + music_list[num])
music_length=music1.get.length()
music_length=intte(logo_img, angle)
newRect=new_logo.get_rect(center=(320,200)) newRect=new_logo.get_rect(center=(320,200))
if play_button==stop_img: if play_button==stop_img:
angle += 1 angle += 1
p=pygame.mixer.music.get_pos()
p=int(p/1000)
p_m=p//60
p_s=p%60
info=str(p_m)+":"+str(p_s)
screen.blit(bg_img, (0, 0)) screen.blit(bg_img, (0, 0))
screen.blit(play_button, (270, 330)) screen.blit(play_button, (270, 330))
screen.blit(new_logo.pos) screen.blit(new_logo.pos)
screen.blit(logo_img, (170, 60)) screen.blit(logo_img, (170, 60))
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=basice_font.render(info,True,(225,255,255))
screen.blit(scoreSurf),(120,440))
scoreSurf2=basice_font.render("/"+info2,True,(0,0,0)
screen.blit(scoreSurf2),(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