Commit 4c7739ad by BellCodeEditor

save project

parent 9d2c021c
Showing with 10 additions and 2 deletions
...@@ -57,6 +57,9 @@ while True: ...@@ -57,6 +57,9 @@ while True:
pygame.mixer.music.play() pygame.mixer.music.play()
play_nutton = stop_img play_nutton = stop_img
clixk = 0 clixk = 0
music1 = pygame.mixer.Sound(path+"\\"+music_list[num])
music_length = music1.get_length()
music_length = int(music_length)
if x > 420 and x < 520 and y > 350 and y < 400: if x > 420 and x < 520 and y > 350 and y < 400:
num+=1 num+=1
if num = len(music_list) -1 if num = len(music_list) -1
...@@ -65,14 +68,19 @@ while True: ...@@ -65,14 +68,19 @@ while True:
pygame.mixer.music.play() pygame.mixer.music.play()
play_nutton = stop_img play_nutton = stop_img
clixk = 0 clixk = 0
music1 = pygame.mixer.Sound(path+"\\"+music_list[num])
music_length = music1.get_length()
music_length = int(music_length)
if pygame.mixer.music.get_busy() == False if pygame.mixer.music.get_busy() == False
num += 1 num += 1
if num >len(filelist)-1: if num >len(filelist)-1:
num = 0 num = 0
pygame.mixer.music.load(filelist[num]) pygame.mixer.music.load(filelist[num])
pygame.mixer.music.play() pygame.mixer.music.play()
music1 = pygame.mixer.Sound(path+"\\"+music_list[num])
music_length = music1.get_length()
music_length = int(musicc_length)
new_logo = pygame.transfrom.rotate(logo_img,angle) new_logo = pygame.transfrom.rotate(logo_img,angle)
newRect = new_logo.get_rect(center=(320,200)) newRect = new_logo.get_rect(center=(320,200))
pos = (newRect[0],newRect[1]) 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