Commit e8724aa2 by BellCodeEditor

save project

parent 19fae612
Showing with 5 additions and 5 deletions
...@@ -18,6 +18,7 @@ num = -1 ...@@ -18,6 +18,7 @@ num = -1
abcd=1 abcd=1
xx=0 xx=0
yy=0 yy=0
FPS=pygame.time.Clock()
for i in filelist: for i in filelist:
if i[-4:] == ".wav" or i[-4:] == ".ogg": if i[-4:] == ".wav" or i[-4:] == ".ogg":
music_list.append(i) music_list.append(i)
...@@ -83,10 +84,8 @@ while True: ...@@ -83,10 +84,8 @@ while True:
new_logo=pygame.transform.rotate(logo_img,abcd) new_logo=pygame.transform.rotate(logo_img,abcd)
aaaaa=new_logo.get_rect(center=(320,200)) aaaaa=new_logo.get_rect(center=(320,200))
pos=(aaaaa[0],aaaaa[1]) pos=(aaaaa[0],aaaaa[1])
if num==0: if play_button==stop_img:
abcd+=1 abcd+=1
else:
abcd=0
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮 screen.blit(play_button, (270, 330)) # 暂停按钮
...@@ -94,4 +93,5 @@ while True: ...@@ -94,4 +93,5 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
screen.blit(new_logo, (pos))# 中间logo图 screen.blit(new_logo, (pos))# 中间logo图
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
\ No newline at end of file FPS.tick(60)
\ No newline at end of file
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