Commit 2a8de597 by BellCodeEditor

save project

parent bf3c1eef
Showing with 5 additions and 2 deletions
......@@ -11,11 +11,12 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo
my_font=pygame.font.Font('nearopol.ttf',18)
my_font=pygame.font.Font('neuropol.ttf',18)
text=my_font.render('Score:10',True,(0,0,0))
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
......@@ -25,3 +26,4 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
screen.blit(text,(540,10))
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