Commit 9674f8f1 by BellCodeEditor

save project

parent d105faed
Showing with 10 additions and 0 deletions
......@@ -12,6 +12,7 @@ last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo
pygame.mixer.music.load('歌曲4.ogg')
basic_font=pygame.font.Font("neuropol.ttf",14)
w = []
qq="C:\\Users\\86130\\Desktop\\text"
......@@ -52,6 +53,7 @@ while True:
else:
pygame.mixer.music.unpause()
b = stop_img
if x>120 and y>350 and x<520 and y>240 and y<400:
m=m-1
if m<0:
......@@ -67,7 +69,13 @@ while True:
pygame.mixer.music.load(qq+"\\"+w[m])
pygame.mixer.music.play()
new_logo=pygame.transform.rotate(logo_img,angle)
play_time=pygame.mixer.music.get_pos()
play_time=int(play_time/1000)
play_m=play_time//60
play_s=play_time%60
info=str(play_m)+":"+str(play_s)
newRect=new_logo.get_rect(center=(320,200))
if ades%2==0:
angle+=1
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
......@@ -75,5 +83,7 @@ while True:
screen.blit(new_logo, newRect) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
scoreSurf=basic_font.render(info,True,(255,255,255))
screen.blit(scoreSurf,(120,440))
# 刷新画面
pygame.display.update()
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