Commit 68b5fc94 by BellCodeEditor

save project

parent 0c4731ee
Showing with 6 additions and 5 deletions
...@@ -13,7 +13,7 @@ last_img = pygame.image.load('last.png') # 上一曲按钮 ...@@ -13,7 +13,7 @@ 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('logo.png') # 下一曲按钮 logo_img = pygame.image.load('logo.png') # 下一曲按钮
abc=0 abc=0
F=pygame.time.Clock()
music_list = [] music_list = []
path = "C:\\Users\\EDZ\\Desktop\\text" path = "C:\\Users\\EDZ\\Desktop\\text"
filelist = os.listdir(path) filelist = os.listdir(path)
...@@ -87,8 +87,8 @@ while True: ...@@ -87,8 +87,8 @@ while True:
new_logo = pygame.transform.rotate(logo_img,abc) new_logo = pygame.transform.rotate(logo_img,abc)
new_rect=new_logo.get_rect(center=(320,200)) new_rect=new_logo.get_rect(center=(320,200))
pos=(new_rect[0],new_rect[1]) pos=(new_rect[0],new_rect[1])
if play_button==stop_img:
abc+=1 abc+=1
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮 screen.blit(play_button, (270, 330)) # 暂停按钮
...@@ -96,4 +96,5 @@ while True: ...@@ -96,4 +96,5 @@ while True:
screen.blit(last_img, (120, 350)) # 上一曲 screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
\ No newline at end of file F.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