Commit c9e82456 by BellCodeEditor

save project

parent 27912086
Showing with 4 additions and 3 deletions
......@@ -14,7 +14,7 @@ last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
path = "C:\\Users\\Administrator\\Desktop\\test\\music"
path = "C:\\Users\\Administrator\\Desktop\\test\\music\\"
filelist = os.listdir(path)
music_list = []
for i in filelist:
......@@ -89,8 +89,9 @@ while True:
# 校正旋转图片的中心点
newRect = new_logo.get_rect(center=(320, 200))
# print(newRect) # rect(170, 65, 300, 270) 左上角坐标、图片大小
pos = (newRect[0], newRect[1])
angle += 1
pos = (newRect[0], newRect[1])
if play_button == stop_img:
angle += 1
# +++++++++++++++++++++++++++++++++++++
# 绘制画面
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