Commit 674b8443 by BellCodeEditor

save project

parent 6e907e65
Showing with 7 additions and 10 deletions
...@@ -11,10 +11,10 @@ play_img = pygame.image.load('play.png') # 播放按钮 ...@@ -11,10 +11,10 @@ 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('logo.png') # 下一曲按钮 logo_img = pygame.image.load('dd.webp') #
music_list = [] music_list = []
path = "C:\\Users\\Administrator\\Desktop\\tast" path = "C:\\Users\\BBTC\\Desktop\\text"
filelist = os.listdir(path) filelist = os.listdir(path)
num = -1 num = -1
angle = 0 angle = 0
...@@ -84,17 +84,15 @@ while True: ...@@ -84,17 +84,15 @@ while True:
num = 0 num = 0
pygame.mixer.music.load(path + "\\" + music_list[num]) pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play() pygame.mixer.music.play()
new_logo = pygame.transform.reason(logo_img,angle) new_logo = pygame.transform.rotate(logo_img,angle)
n newRect = new_logo.get_rect(center=(320,200))
pos = (newRect[0],newRect[1])
new_logo = pygame.transform.rotate(logo_img, angle)
angle += 1 angle += 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))
screen.blit(logo_img, (170, 60)) #screen.blit(logo_img, (170, 60))
screen.blit(new_logo, pos) screen.blit(new_logo, pos)
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
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