Commit 0ae77982 by BellCodeEditor

save project

parent 89017568
Showing with 4 additions and 4 deletions
......@@ -70,11 +70,11 @@ while True:
# 将贪吃蛇的身体画上去
for i in range(len(position)-1):
screen.blit(body, position[i])
info="score"+str(score)
info="score:"+str(score)
text=my_font.render(info,True,(0,0,0))
screen.blit(text,(540,10))
screen.blit(text,(530,10))
# 将果实画上去
screen.blit(food, (ax, ay))
# 刷新画面
pygame.display.update()
FPSCLOCK.tick(3)
\ No newline at end of file
FPSCLOCK.tick(5)
\ 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