Commit 589441fc by BellCodeEditor

save project

parent dcd29b91
Showing with 9 additions and 0 deletions
......@@ -27,6 +27,7 @@ play_button = stop_img
a=0
x1,y1=0,0
yyds=pygame.transform.rotate(logo_img,a)
my_fout=pygame.font.Font('neuropol.ttf',18)
while True:
......@@ -80,6 +81,12 @@ while True:
click += 2
else:
click += 1
sb0=pygame.mixer.music.get_pos()
sb=sb0//1000
p_m=sb//60
p_s=sb%60
info=str(p_m)+':'+str(p_s)
text=my_fout.render(info,True,(0,0,0))
if pygame.mixer.music.get_busy() == False:
num += 1
......@@ -99,5 +106,6 @@ while True:
screen.blit(yyds, (x1,y1)) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
screen.blit(text,(130,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