Commit 39bfe23e by BellCodeEditor

save project

parent f9c9ce55
Showing with 3 additions and 2 deletions
......@@ -26,6 +26,7 @@ position = [(180, 90), (180, 120), (210, 120), (x, y)]
setheading = "right"
snake_head = right
score = 0
r = 3
while True:
for event in pygame.event.get():
......@@ -79,4 +80,4 @@ while True:
screen.blit(food, (apple_x, apple_y))
# 刷新画面
pygame.display.update()
FPSCLOCK.tick(3)
\ No newline at end of file
FPSCLOCK.tick(7)
\ 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