Commit e96ff23b by BellCodeEditor

save project

parent 8a73e584
Showing with 3 additions and 0 deletions
...@@ -39,5 +39,7 @@ while True: ...@@ -39,5 +39,7 @@ while True:
score=score+1 score=score+1
else: else:
position.pop(0) position.pop(0)
if x<0 or x>630 or y<0 or y>450:
exit()
pygame.display.update() pygame.display.update()
\ 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