Commit ca6cc716 by BellCodeEditor

save project

parent e8c03af1
Showing with 7 additions and 0 deletions
...@@ -93,6 +93,13 @@ while True: ...@@ -93,6 +93,13 @@ while True:
if play_button==stop_img: if play_button==stop_img:
angle +=0.5 angle +=0.5
#时长
Mtime=pygame.mixer_music.get_pos()
Mtime=int(Mtime/1000)
Mm=Mtime//60
Ms=Mtime%60
info=str(Mm)+":"+str(Ms)
print(info)
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 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