Commit c3de81c1 by BellCodeEditor

save project

parent 0c7f975d
Showing with 3 additions and 3 deletions
......@@ -14,7 +14,7 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
music_list = []
path="C:\\Users\\Administrator\\Desktop"
path="D:\\1"
filelist = os.listdir(path)
num = -1
for i in filelist:
......@@ -23,7 +23,7 @@ for i in filelist:
volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
FPS=pygame.time.Clock()
play_button = stop_img
angle=0
while True:
......@@ -85,7 +85,7 @@ while True:
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
new_logo=pygame.transform.rotate(logo_img,angle)
newRect=surfacce.get_rect(center=(320,200))
newRect=new_logo.get_rect(center=(320,200))
pos=(newRect[0],newRect[1])
if play_button == stop_img:
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