Commit fd500692 by BellCodeEditor

save project

parent 9018e1d0
Showing with 2 additions and 1 deletions
......@@ -25,6 +25,7 @@ filelist=os.listdir(path)
for i in filelist:
if i[-4:]==".wav" or i[-4:]==".ogg":
nmd.append(i)
print(nmd)
while True:
for event in pygame.event.get():
......@@ -73,7 +74,7 @@ while True:
num+=1
if num==len(nmd):
num=0
pygame.mixer.music.load(path+"\\"+nmd[num])
pygame.mixer.music.load(nmd[num])
pygame.mixer.music.play()
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
......
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