Commit 1803e367 by BellCodeEditor

save project

parent e489b54d
Showing with 1 additions and 9 deletions
......@@ -89,26 +89,19 @@ while True:
pley_m = pley_time//60
pley_s =pley_time%60
if play_s < 10:
pley_s = "0" + str(pley_s)
infe = str(pley_m) + ":" + str(pley_s)
#旋转后的唱片图片
new_logo = pygame.transform.rotate(logo_ing,angle)
newRect = new_logo.get_rect(center=(320,200))
pos = (newRect[0],newRect[1])
if pley_button == stop_img:
angle += 1
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮
screen.blit(new_logo, pos) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
scoreSurf = basic_font.render(infe,True,(255,255,255))
screen.blit(scoreSurf,(120,440))
scoreSurf2 = basic_font.render("/" + info2,True,(0,0,0))
screen.blit(scoreSurf2,(170,440))
# 刷新画面
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