Commit 5877c67c by BellCodeEditor

save project

parent 3e45afc2
Showing with 3 additions and 0 deletions
...@@ -22,6 +22,9 @@ while True: ...@@ -22,6 +22,9 @@ while True:
if event.type == locals.QUIT: if event.type == locals.QUIT:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
score+=score+10
if x<0 or x>630 or y<0 or y>450:
exit()
x=x+30 x=x+30
head.append((x,y)) head.append((x,y))
head.pop(0) head.pop(0)
......
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