Commit b131ecf2 by BellCodeEditor

save project

parent 6e94bfb2
Showing with 1 additions and 1 deletions
...@@ -42,7 +42,7 @@ while True: ...@@ -42,7 +42,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<0 or x>630 or y<0 or y>450: if x<0 or x>600 or y<0 or y>420:
exit() exit()
# 设置贪吃蛇的头部坐标 # 设置贪吃蛇的头部坐标
if setheading == "right": if setheading == "right":
......
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