Commit d9be46b8 by BellCodeEditor

save project

parent 4556a53b
Showing with 3 additions and 1 deletions
...@@ -62,7 +62,9 @@ while True: ...@@ -62,7 +62,9 @@ while True:
apple_y = sum2*30-30 apple_y = sum2*30-30
score+=10#加分 score+=10#加分
else: else:
position.pop(0)#实现变长 position.pop(0)#实现变长
if x<0 or x>630 or y<0 or y>450:#出边界
exit() #退出
position.append((x, y)) position.append((x, y))
# 将背景图画上去 # 将背景图画上去
......
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