Commit b13f25f7 by BellCodeEditor

save project

parent 91be81ff
Showing with 3 additions and 3 deletions
...@@ -22,7 +22,7 @@ x,y=240,120 ...@@ -22,7 +22,7 @@ x,y=240,120
position=[(180,90),(180,120),(210,120),(x,y)] position=[(180,90),(180,120),(210,120),(x,y)]
setheading="right" setheading="right"
snack_head=right snake_head=right
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
...@@ -68,4 +68,4 @@ while True: ...@@ -68,4 +68,4 @@ while True:
screen.blit(food, (360, 300)) screen.blit(food, (360, 300))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPSCLOCK.tick(50) FPSCLOCK.tick(6)
\ 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