From 40c5985a98ed0ca73a504499aa53ceed771d98d6 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Wed, 15 Dec 2021 19:17:47 +0800 Subject: [PATCH] save project --- snake.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snake.py b/snake.py index af8fd68..2816faf 100644 --- a/snake.py +++ b/snake.py @@ -46,7 +46,9 @@ while True: setheading = 'down' snake_head = down - # 设置贪吃蛇的头部坐标 + info = "Score:"+ str(score) + text = my_font.render(info, True, (0, 0, 0)) + screen.blit(text, (540, 10)) if setheading == "right": x += 30 elif setheading == "left": -- libgit2 0.25.0