Commit 347c5d92 by BellCodeEditor

save project

parent 0263ee54
Showing with 5 additions and 3 deletions
...@@ -12,12 +12,12 @@ play_img = pygame.image.load('play.png') # 播放按钮 ...@@ -12,12 +12,12 @@ play_img = pygame.image.load('play.png') # 播放按钮
stop_img = pygame.image.load('stop.png') # 暂停按钮 stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮 last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮 next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('庞小.png') # 下一曲按钮 logo_img = pygame.image.load('庞小.png') # 下一曲按钮
#导入文件路径 #导入文件路径
music_list=[] music_list=[]
path='C:\\Users\\qiaoh\\Desktop\\郑云天' path='C:\\Users\\qiaoh\\Desktop\\text'
#本地列表 #本地列表
filelist=os.listdir(path) filelist=os.listdir(path)
for i in filelist: for i in filelist:
...@@ -86,7 +86,9 @@ while True: ...@@ -86,7 +86,9 @@ while True:
new_logo = pygame.transform.rotate(logo_img,angle) new_logo = pygame.transform.rotate(logo_img,angle)
newRect = new_logo.get_rect(center=(320,200)) newRect = new_logo.get_rect(center=(320,200))
pos = (newRect[0],newRect[1]) pos = (newRect[0],newRect[1])
angle+=1 if play_button == stop_img:
angle+=1
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
......
爸爸.png

4.33 KB

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