Commit b4f9e7df by BellCodeEditor

auto save

parent 624db6d1
Showing with 3 additions and 2 deletions
...@@ -26,6 +26,7 @@ apple_y = 300 ...@@ -26,6 +26,7 @@ apple_y = 300
setheading = "right" setheading = "right"
snake_head = right snake_head = right
s
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
...@@ -72,4 +73,4 @@ while True: ...@@ -72,4 +73,4 @@ while True:
screen.blit(food, (apple_x, apple_y)) screen.blit(food, (apple_x, apple_y))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPSCLOCK.tick(15) FPSCLOCK.tick(10)
\ No newline at end of file \ 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