Commit 1f779dcb by BellCodeEditor

auto save

parent 73f02740
Showing with 4 additions and 4 deletions
......@@ -82,10 +82,9 @@ while True:
# screen.blit(body, (180,90))
# 将果实画上去
screen.blit(food, (apple_x, apple_y))
example = pygame.font.Font(filename, size)
info='分数:'+str(score)
text=example.render(info,True,(255,255,0))
screen.blit(text,(500,30))
print(pygame.font.get_fonts())
self.font=pygame.font.SysFont(None,48)
self.font = pygame.font.SysFont('arial',48)
# 刷新画面
pygame.display.update()
sj.tick(4)
\ 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