Commit 1f779dcb by BellCodeEditor

auto save

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