Commit 4b3ac86c by BellCodeEditor

save project

parent 71626e01
Showing with 6 additions and 0 deletions
...@@ -60,6 +60,7 @@ while True: ...@@ -60,6 +60,7 @@ while True:
if num > len(music_list) - 1: if num > len(music_list) - 1:
num = 0 num = 0
pygame.mixer.music.load(path + "\\" + music_list[num]) pygame.mixer.music.load(path + "\\" + music_list[num])
musicl = pygame.mixer.Sound(path+)
pygame.mixer.music.play() pygame.mixer.music.play()
play_button = stop_img play_button = stop_img
if click % 2 == 0: if click % 2 == 0:
...@@ -85,6 +86,7 @@ while True: ...@@ -85,6 +86,7 @@ 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()
play_time = pygame.mixer.music.get_po
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])
...@@ -96,5 +98,8 @@ while True: ...@@ -96,5 +98,8 @@ while True:
screen.blit(logo_img, (170, 60)) # 中间logo图 screen.blit(logo_img, (170, 60)) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲 screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
scoreSurf = basic_font.render(info,True(255,255,255))
screen.blit(scoreSurf,(120,440))
# 刷新画面 # 刷新画面
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