Commit a7b71df0 by BellCodeEditor

save project

parent a8b1b060
Showing with 14 additions and 1 deletions
......@@ -25,6 +25,11 @@ pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
play_button = stop_img
angle = 0
rotae_click="roll_on"
my_font=pygame.font.SysFont("neuropol.ttf",50)
while True:
for event in pygame.event.get():
......@@ -85,6 +90,12 @@ while True:
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
music_time=pygame.mixer.music.get_pos()//1000
time_1=music_time//60
time_2=music_time%60
times = str(time_1) + ":" + str(time_2)
text = my_font.render(times,True,(0,250,0))
long_1=pygame.transform.rotate(logo_img,angle)
long_2=long_1.get_rect(center=(320,180))
print=(long_2)
......@@ -96,6 +107,7 @@ while True:
screen.blit(play_button, (270, 330)) # 暂停按钮
screen.blit(long_1, pos) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
screen.blit(next_img, (420, 350))
screen.blit(text,(350,320))
# 刷新画面
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