Commit 24e5879d by BellCodeEditor

save project

parent 07c9eecb
Showing with 4 additions and 0 deletions
...@@ -87,12 +87,16 @@ while True: ...@@ -87,12 +87,16 @@ while True:
num = 0 num = 0
pygame.mixer.music.load(path + "\\" + music_list[num]) pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play() pygame.mixer.music.play()
music1 = pygame.mixer.Sound(path + "//" + music_list[num])
sj =
# 绘制画面 # 绘制画面
sj = pygame.mixer.music.get_pos() sj = pygame.mixer.music.get_pos()
sj = int(sj/1000) sj = int(sj/1000)
sj_m = sj//60 sj_m = sj//60
sj_s = sj%60 sj_s = sj%60
if sj_s < 10:
sj_s = "0" + str(sj_s)
info = str(sj_m) + ":" + str(sj_s) info = str(sj_m) + ":" + str(sj_s)
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) screen.blit(play_button, (270, 330))
......
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