Commit 4f44d6db by BellCodeEditor

save project

parent 8d230829
Showing with 7 additions and 1 deletions
...@@ -103,6 +103,7 @@ while True: ...@@ -103,6 +103,7 @@ while True:
info = str(play_m) + ':' +'0'+ str(play_s) info = str(play_m) + ':' +'0'+ str(play_s)
else: else:
info = str(play_m) + ':' + str(play_s) info = str(play_m) + ':' + str(play_s)
info1 = '/' + '00' + ':' + str(music_length)
new_logo = pygame.transform.rotate(logo_img,angle) new_logo = pygame.transform.rotate(logo_img,angle)
newRect = new_logo.get_rect(center=(320,220)) newRect = new_logo.get_rect(center=(320,220))
...@@ -111,7 +112,7 @@ while True: ...@@ -111,7 +112,7 @@ while True:
if click%2 == 0: if click%2 == 0:
angle+=1 angle+=1
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮 screen.blit(play_button, (270, 330)) # 暂停按钮
...@@ -122,5 +123,9 @@ while True: ...@@ -122,5 +123,9 @@ while True:
basic_font = pygame.font.Font('neuropol.ttf',18) basic_font = pygame.font.Font('neuropol.ttf',18)
scoreSurf = basic_font.render(info,True,(255,255,255)) scoreSurf = basic_font.render(info,True,(255,255,255))
screen.blit(scoreSurf,(120,440)) screen.blit(scoreSurf,(120,440))
basic_font1 = pygame.font.Font('neuropol.ttf',18)
scoreSurf1 = basic_font1.render(info1,True,(0,0,0))
screen.blit(scoreSurf1,(180,440))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
\ No newline at end of file
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