Commit 939c3a53 by BellCodeEditor

save project

parent 2bebb326
Showing with 1 additions and 0 deletions
...@@ -58,6 +58,7 @@ while True: ...@@ -58,6 +58,7 @@ while True:
position.append((x, y)) position.append((x, y))
if x == food_x and y == food_y: if x == food_x and y == food_y:
food_x,food_y = rdt(0,22)*30-30,rdt(0,16)*30-30 food_x,food_y = rdt(0,22)*30-30,rdt(0,16)*30-30
score += 1
else: else:
position.pop(0) position.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