Commit 244453c1 by BellCodeEditor

save project

parent 1b7e30b8
Showing with 5 additions and 0 deletions
...@@ -81,6 +81,7 @@ while True: ...@@ -81,6 +81,7 @@ while True:
num += 1 num += 1
if num > len(music_list)-1: if num > len(music_list)-1:
num = 0 num = 0
plat_time=pygame.mixer_music.get_pos()
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.rotate(logo_img,angle) new logo=pygame.transform.rotate(logo_img,angle)
...@@ -88,10 +89,13 @@ while True: ...@@ -88,10 +89,13 @@ while True:
pos=(newRect[0],newRect[1]) pos=(newRect[0],newRect[1])
angle+=1 angle+=1
# 绘制画面 # 绘制画面
play_time
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)) # 中间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=basie_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