Commit 48daac5a by BellCodeEditor

save project

parent 7cd29a83
Showing with 7 additions and 1 deletions
......@@ -12,11 +12,13 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
basic-font=pygame.font.Font('neuropol.ttf',14)
music_list = []
path = "C:\\Users\\makcoo\\Desktop\\nc"
filelist = os.listdir(path)
num = -1
angle=0
nb=0
for i in filelist:
if i[-4:] == ".wav" or i[-4:] == ".ogg":
music_list.append(i)
......@@ -94,7 +96,11 @@ while True:
newRect=new_logo.get_rect(center=(320,200))
pos=(newRect[0],newRect[1])
angle=angle
nb=pygame.mixer.music.get_pos()
dlj=int(nb/1000)
xlj=dlj//60
zlj=dlj%60
info=str(xlj)+":"+str(zlj)
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
......
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