Commit 74661d2c by BellCodeEditor

save project

parent 69f0a1e8
Showing with 2 additions and 0 deletions
......@@ -25,6 +25,7 @@ apple_y = 300
setheading = "right"
snake_head = right
Score = 0
while True:
for event in pygame.event.get():
......@@ -73,6 +74,7 @@ while True:
# 将果实画上去
screen.blit(food, (apple_x, apple_y))
#绘制分数
info = "Score"+ str(Score)
text = my_font = pygame.font.render(info, True, (0,0,0))
screen.blit(text,(540, 10))
......
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