Commit 9d02e2d3 by BellCodeEditor

save project

parent 3ff29170
Showing with 15 additions and 8 deletions
......@@ -64,6 +64,7 @@ while True:
play_button = stop_img
music1=pygame.mixer.Sound(path+"\\"+music_list[num])
music_length=int(music1.get_length())
info2="/"+ str(music_m) + ":" + str(music_s)
if click % 2 == 0:
click += 2
else:
......@@ -78,16 +79,11 @@ while True:
play_button = stop_img
music1=pygame.mixer.Sound(path+"\\"+music_list[num])
music_length=int(music1.get_length())
info2="/"+ str(music_m) + ":" + str(music_s)
if click % 2 == 0:
click += 2
else:
click += 1
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)
if pygame.mixer.music.get_busy() == False:
......@@ -98,9 +94,20 @@ while True:
pygame.mixer.music.play()
music1=pygame.mixer.Sound(path+"\\"+music_list[num])
music_length=int(music1.get_length())
music_m=music_length//60
music_s=music_length%60
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)
music_m=music_length//60
music_s=music_length%60
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],newRect[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