Commit 3b2a2258 by BellCodeEditor

save project

parent 89f44a11
Showing with 1 additions and 1 deletions
...@@ -45,7 +45,7 @@ while True: ...@@ -45,7 +45,7 @@ while True:
if event.key == locals.K_DOWN and setheading != "up": if event.key == locals.K_DOWN and setheading != "up":
setheading = 'down' setheading = 'down'
snake_head = down snake_head = down
if x>660 or x<0 or y>480 or y<0: if x>630 or x<0 or y>450 or y<0:
exit() exit()
# 设置贪吃蛇的头部坐标 # 设置贪吃蛇的头部坐标
......
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