Commit bb0eeea6 by BellCodeEditor

save project

parent 1fdc0927
Showing with 5 additions and 0 deletions
...@@ -59,6 +59,11 @@ while True: ...@@ -59,6 +59,11 @@ while True:
num=0 num=0
pygame.mixer_music.load(path+"\\"+file_list[num]) pygame.mixer_music.load(path+"\\"+file_list[num])
pygame.mixer.music.play() pygame.mixer.music.play()
button=1
play=stop_img
music1=pygame.mixer.Sound(path+"\\"+file_list[num])
music_length = music1.get_length()
music_length=int(music_length)
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 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