Commit fe44d1d5 by BellCodeEditor

save project

parent 98851f23
Showing with 3 additions and 3 deletions
...@@ -58,7 +58,7 @@ while True: ...@@ -58,7 +58,7 @@ while True:
num += 1 num += 1
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()
play_button = stop_img play_button = stop_img
if click % 2 == 0: if click % 2 == 0:
...@@ -82,10 +82,10 @@ while True: ...@@ -82,10 +82,10 @@ while True:
num += 1 num += 1
if num > len(filelist)-1: if num > len(filelist)-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.rotate(logo_img,angle)
newRect=new_logo.get_rect(center(320,150)) newRect=new_logo.get_rect(center=(320,175))
pos=(newRect[0],newRect[1]) pos=(newRect[0],newRect[1])
if play_button==stop_img: if play_button==stop_img:
angle+=1 angle+=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