Commit 5a5cfe5a by BellCodeEditor

auto save

parent 70e0c0d8
Showing with 4 additions and 3 deletions
...@@ -3,7 +3,7 @@ from pygame import locals ...@@ -3,7 +3,7 @@ from pygame import locals
import os import os
pygame.init() # 初始化 pygame.init() # 初始化
ww=pygame.font.Font("") ww=pygame.font.Font('neuropol.ttf',18)
# 创建窗口 # 创建窗口
screen = pygame.display.set_mode((640, 480)) screen = pygame.display.set_mode((640, 480))
q_q=pygame.time.Clock() q_q=pygame.time.Clock()
...@@ -37,7 +37,7 @@ while True: ...@@ -37,7 +37,7 @@ while True:
play_s=play_time%60 play_s=play_time%60
if play_s<10: if play_s<10:
play_s="0"+str(play_s) play_s="0"+str(play_s)
info=str(play_m)+":"+str(play_s) ww+=str(play_m)+":"+str(play_s)
music_m=music_length//60 music_m=music_length//60
music_s=music_length%60 music_s=music_length%60
if music_s<10: if music_s<10:
...@@ -112,7 +112,7 @@ while True: ...@@ -112,7 +112,7 @@ while True:
screen.blit(new_logo, (p_p)) # 中间logo图 screen.blit(new_logo, (p_p)) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲 screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
scoreSurf=basic_font.render(info,True,(255,255,255)) scoreSurf=basic_font.render(ww,True,(255,255,255))
screen.blit(scoreSurf,(120,440)) screen.blit(scoreSurf,(120,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