Skip to content

Instantly share code, notes, and snippets.

@ProgDan
Created June 12, 2020 12:27
Show Gist options
  • Select an option

  • Save ProgDan/5fc7287d66cec77bbd9def072d83deb6 to your computer and use it in GitHub Desktop.

Select an option

Save ProgDan/5fc7287d66cec77bbd9def072d83deb6 to your computer and use it in GitHub Desktop.
if head.distance(food) < 15:
# Move a comida para uma posição aleatória na tela
x = random.randint(-290, 290)
y = random.randint(-290, 290)
food.goto(x, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment