Commit d64fbb15 by BellCodeEditor

save project

parent ad989c20
Showing with 4 additions and 2 deletions
......@@ -49,7 +49,9 @@ while True:
else:
add = down
y += 30
if x==apple_x and y==apple_y:
apple_x=random.randint(0,660)
apple_y=random.randint(0,480)
screen.blit(background, (0, 0))
screen.blit(add, (x, y))
......@@ -60,7 +62,7 @@ while True:
for i in range(len(a12)-1):
screen.blit(body,a12[i])
screen.blit(food, (360, 300))
screen.blit(food, (apple_x, apple_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