Commit 075eb5bd by BellCodeEditor

save project

parent e52289fa
Showing with 3 additions and 2 deletions
......@@ -81,11 +81,12 @@ while True:
click += 1
play_time=pygame.mixer.music.get_pos()
play_time=
play_time=int(play_time/1000)
play_m=play_time//60
play_s=play_time%60
info=str(play_m)+':'+str(play_s)
info2=str(play_m)+':'+str(play_s)
if pygame.mixer.music.get_busy() == False:
num += 1
......@@ -108,7 +109,7 @@ while True:
scoreSurf=basic_font.render(info,True,(255,255,255))
screen.blit(scoreSurf,(120,440))
scoreSurf2=basic_font.render('/'+info2,True,(0,0,0))
screen.blit(scoreSurf,(120,440))
screen.blit(scoreSurf2,(170,440))
screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮
screen.blit(logo_img, pos) # 中间logo图
......
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