Commit 898df2ad by BellCodeEditor

save project

parent 3a777ea7
Showing with 4 additions and 0 deletions
......@@ -14,6 +14,7 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
music_list = []
angle = 0
FPS = pygame.time.Clock()
path = "C:\\Users\\students\\Desktop\\abc"
filelist = os.listdir(path)
for i in filelist:
......@@ -90,6 +91,8 @@ while True:
newRect = new_logo.get_rect(center=(320,200))
pos = (newRect[0],newRect[1])
angle += 1
if play_button == play_img:
angle -= 1
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
......@@ -98,4 +101,5 @@ while True:
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
FPS.tick(60)
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