Commit 913176f1 by BellCodeEditor

save project

parent eb9bc34e
Showing with 2 additions and 2 deletions
...@@ -15,7 +15,7 @@ logo_img = pygame.image.load('logo.png') # 中间logo图 ...@@ -15,7 +15,7 @@ logo_img = pygame.image.load('logo.png') # 中间logo图
basic_font = pygame.font.Font('neuropol.ttf', 14) # 字体 basic_font = pygame.font.Font('neuropol.ttf', 14) # 字体
music_list = [] music_list = []
path = "C:\\Users\\bellcode\\Desktop\\test" path = "C:\\Users\\mk\\Documents\\pygame_lesson6_diy4"
filelist = os.listdir(path) filelist = os.listdir(path)
for i in filelist: for i in filelist:
if i[-4:] == ".ogg" or i[-4:] == ".wav": if i[-4:] == ".ogg" or i[-4:] == ".wav":
......
...@@ -77,7 +77,7 @@ while True: ...@@ -77,7 +77,7 @@ while True:
click += 2 click += 2
else: else:
click += 1 click += 1
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num += 1 num += 1
if num > len(music_list)-1: if num > len(music_list)-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