Commit 813ed687 by BellCodeEditor

auto save

parent 130b0862
Showing with 12 additions and 2 deletions
......@@ -17,6 +17,7 @@ music_list = []
path = "C:\\Users\\bellcode\\Desktop\\test"
filelist = os.listdir(path)
num = -1
jjj=0
for i in filelist:
if i[-4:] == ".wav" or i[-4:] == ".ogg":
music_list.append(i)
......@@ -83,6 +84,10 @@ while True:
num = 0
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
lop=pygame.transform.rotate(logo_img,jjj)
ec=lop.gat_rect(center(270,330))
pos =ec[0],ec[1]
jjj+=1
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
......@@ -91,4 +96,10 @@ while True:
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
pygame.display.update()
\ No newline at end of file
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