Commit 03cd4620 by BellCodeEditor

save project

parent d36ae17d
Showing with 5 additions and 1 deletions
......@@ -15,9 +15,12 @@ logo_img = pygame.image.load('logo.png') # 下一曲按钮
# 载入音乐
# 载入音乐
music_list=[]
num=-1
path="C:\Users\Administrator\Desktop\"
a=os.listdir(path)
if i [-4:]==".wav" or i [-4:]=="ogg":
for i in a:
music_list.append(i)
volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
......@@ -67,5 +70,6 @@ while True:
screen.blit(logo_img, (170, 60)) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350))# 下一曲
pygame.transform.rotate(Surface,angle)
# 刷新画面
pygame.display.update()
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