Commit 51169f45 by BellCodeEditor

save project

parent 5e31793a
Showing with 5 additions and 0 deletions
...@@ -55,6 +55,11 @@ while True: ...@@ -55,6 +55,11 @@ while True:
y += 30 y += 30
position.append((x, y)) position.append((x, y))
if x == appple_x and y == appple_y: if x == appple_x and y == appple_y:
num1= random.randint(1,22)
num2= random.randint(1,16)
appple_x = num1 * 30 - 30
appple_y = num2 * 30 - 30
appple_x = randmo.randint(0,660) appple_x = randmo.randint(0,660)
appple_y = randmo.randint(0,480) appple_y = randmo.randint(0,480)
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