Commit 0d0c754a by BellCodeEditor

save project

parent 23598dea
Showing with 8 additions and 1 deletions
......@@ -5,7 +5,7 @@ import os
pygame.init()
screen = pygame.display.set_mode((640, 480))
my_fon=pygame.font.Font('neuropol.ttf',18)
bg_img = pygame.image.load('background.png') # 背景图
play_img = pygame.image.load('play.png') # 播放按钮
stop_img = pygame.image.load('stop.png') # 暂停按钮
......@@ -85,6 +85,13 @@ while True:
num = 0
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
musicpos=pygame.mixer.music.get_pos()
music_m=(musicpos/1000)//60
music_s=(musicpos/1000)%60
inf=str (music_m)+":"+str (music_s)
fgf=font.render(inf,True,(255,255,255))
screen.blit(fgf, (600,360))
new_logo = pygame.transform.rotate(logo_img, angle)
new_rect=new_logo.get_rect(center=(320,200))
pos=(new_rect[0],new_rect[1])
......
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