Commit 0d7a051f by BellCodeEditor

save project

parent ed0c1355
Showing with 2 additions and 1 deletions
......@@ -18,7 +18,7 @@ path = "C:\\Users\\Administrator\\Desktop\\test"
filelist = os.listdir(path)
num = -1
for i in filelist:
if i[-4:] == ".wav" or i[-4:] == ".ogg":
if i[-4:] == ".wav" or i[-4:] == ".ogg" or i[-4:] == ".mp3":
music_list.append(i)
volume = 0.2
pygame.mixer.music.set_volume(volume)
......@@ -86,6 +86,7 @@ while True:
new_logo = pygame.transform.rotate(logo_img, angle)
newRect=new_logo.get_rect(center=(320,200))
pos=(newRect[0],newRect[1])
if play_button==stop_img:
angle += 1
screen.blit(bg_img, (0, 0))
screen.blit(play_button, (270, 330))
......
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