Commit 1f1a0fc6 by BellCodeEditor

save project

parent 502368fc
Showing with 24 additions and 6 deletions
......@@ -59,6 +59,9 @@ while True:
num = 0
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
music1=pygame.mixer.Sound(path+"\\"+music_list[num])
music_lenght=music1.get_lenght()
music_lenght=int(music_lenght)
play_button = stop_img
if click % 2 == 0:
click += 2
......@@ -71,6 +74,9 @@ while True:
num = len(music_list) - 1
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
music1=pygame.mixer.Sound(path+"\\"+music_list[num])
music_lenght=music1.get_lenght()
music_lenght=int(music_lenght)
play_button = stop_img
if click % 2 == 0:
click += 2
......@@ -83,20 +89,33 @@ while True:
num = 0
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
music1=pygame.mixer.Sound(path+"\\"+music_list[num])
music_lenght=music1.get_lenght()
music_lenght=int(music_lenght)
new_logo = pygame.transform.rotate(logo_img, angle)
newRect=new_logo.get_rect(center=(320,200))
pos=(newRect[0],newRect[1])
angle += 1
play_time=pygame.mixer.music.get_pos()
play_time=int(play_time/1000)
if music_s<10:
play_m=play_time//60
play_s=play_time%60
info=strplay_m)+":"+str(play_s)
play_s=play_time%60
music_s="0"+str(music_s)
info2=str(music_m)+":"+str(music_s)
play_m=play_time//60
play_s=play_time%60
music_s="0"+str(music_s)
info2=str(music_m)+":"+str(music_s)
screen.blit(bg_img, (0, 0))
screen.blit(play_button, (270, 330))
screen.blit(logo_img, (170, 60))
screen.blit(last_img, (120, 350))
screen.blit(next_img, (420, 350))
pygame.display.update()
\ No newline at end of file
screen.blit(next_img, (420, 350))
pygame.display.update()
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